Skip to content

Commit 9c8a61e

Browse files
committed
英文版readme部分return改为response,parse改为resolve
1 parent bbcea1c commit 9c8a61e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README(English).md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
APIJSON is a JSON Transmission Structure Protocol.
1313

14-
You can set any JSON structure and request your server, and the server will return a JSON String with the structure you had set.<br />
14+
You can set any JSON structure and request your server, and the server will response a JSON String with the structure you had set.<br />
1515
You can get any data with any JSON structure by requesting server just once. It's very convenient and flexible, and does not require a special api or multiple requests.<br />
1616
It provides additions and deletions, fuzzy search, remote function calls and so on. And you can save duplicate data and improve transmission speed as well!<br />
1717

@@ -302,19 +302,19 @@ Response:
302302
-------- | ------------ | ------------
303303
Requirement | Client developers append key-value pairs to an url for a request in documents | Client developers append JSON to the url for their requirements
304304
Structure | base_url/get/table_name?<br />key0=value0&key1=value1...<br /><br />Only one table_name can be contained in an URL | base_url/get/<br />{<br > &nbsp;&nbsp; TableName0:{<br > &nbsp;&nbsp;&nbsp;&nbsp; key0:value0,<br > &nbsp;&nbsp;&nbsp;&nbsp; key1:value1,<br > &nbsp;&nbsp;&nbsp;&nbsp; ...<br > &nbsp;&nbsp; },<br > &nbsp;&nbsp; TableName1:{<br > &nbsp;&nbsp;&nbsp;&nbsp; ...<br > &nbsp;&nbsp; }<br > &nbsp;&nbsp; ...<br > }<br /><br />You can add TableNames as many as you want after an URL
305-
URL | Different urls for different requests. The more diffirent kinds of request, the more different urls | One url for one method(GET,POST...), most requests use the same URL of the 7 common ones
305+
URL | Different urls for different requests. The more diffirent kinds of requests, the more different urls | One url for one method(GET,POST...), most requests use the same URL of the 7 common ones
306306
Key-Value Pair | key=value | key:value
307307

308308
<br />
309309

310310
Server operation | Previous way | APIJSON
311311
-------- | ------------ | ------------
312312
Parse and response | Get key-value pairs and query the database with them by the default way, then encapsulate a JSON, finally return the JSON to clients | Just return what Parser#parse returned
313-
Way of setting JSON structure to return | Designed in servers and cannot be modified by any clients | Designed by clients and cannot be modified by servers
313+
Way of setting JSON structure of Response | Designed in servers and cannot be modified by clients | Designed by clients and cannot be modified by servers
314314

315315
<br />
316316

317-
Client parse | Previous way | APIJSON
317+
Client resolve | Previous way | APIJSON
318318
-------- | ------------ | ------------
319319
View structure | Search documents or view logs after responses for requests | Just view the requests, and viewing logs after responses for requests is also supported
320320
Operate | Parse JSON String from responses | Parse with JSONResponse or use previous way

0 commit comments

Comments
 (0)