You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compatibility | 服务端编辑新接口,用v2表示第2版接口,然后更新文档 | do nothing
155
+
Transmission | Server developers edit interfaces and update docs, then client developers request server and parse server responses according to the docs | Client developers request server and parse server responses for their requirements
156
+
Compatibility | Server developers add new interfaces tagged with v2 and update docs | do nothing
Requirement | Client developers append key-value pairs to the urls for requests in docs | Client developers append JSON for their requirements
161
+
Structure | base_url/lowercase_table_name?key0=value0&key1=value1...<br />¤tUserId=100¤tUserPassword=1234<br />the currentUserId and currentUserPassword is only for parts of interfaces | base_url/{TableName0:{key0:value0, key1:value1 ...}, TableName1:{...}...<br />, currentUserId:100, currentUserPassword:1234}<br />the currentUserId and currentUserPassword is only for parts of interfaces
162
+
URL | Different urls for different method(GET,POST...) or requirements | One url for one method(GET,POST...)
163
163
Key-Value Pair | key=value | key:value
164
164
165
165
Server operation | Previous way | APIJSON
166
166
-------- | ------------ | ------------
167
-
Parse and response | 取出键值对,用键值对作为条件去查询预设的table,最后封装JSON并返回给客户端 | 把RequestParser#parse方法的返回值返回给客户端
168
-
Way of setting JSON structure to return | 由服务端设定,客户端不能修改 | 由客户端设定,服务端不能修改
167
+
Parse and response | Get key-value pairs and query tables with them by the default way, and return JSON to client | Just return what RequestParser#parse returned
168
+
Way of setting JSON structure to return | Designed in server and cannot be modified by any client apps | Designed by client apps and cannot be modified by sever
0 commit comments