Skip to content

Commit 2734efa

Browse files
authored
Update README.md
1 parent 31634a3 commit 2734efa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ APIJSON是一种JSON传输结构协议。<br />
183183
Moment列表,每个Moment包括发布者User和前3条Comment | {"status":200, "message":"success", "data":[{"id":1, "content":"xxx"..., "User":{...}, "Comment":[...]}, {"id":2...}...]} | {"status":200, "message":"success", "[]":{"0":{"Moment":{"id":1, "content":"xxx"...}, "User":{...}, "[]":{"0":{"Comment":{...}...}}}, "1":{...}...}}
184184
User发布的Moment列表,每个Moment包括发布者User和前3条Comment | {"status":200, "message":"success", "data":[{"id":1, "content":"xxx"..., "User":{...}, "Comment":[...]}, {"id":2...}...]} | 以上不同请求方法的结果:<br />①{"status":200, "message":"success", "[]":{"0":{"User":{"id":1, "name":"xxx"...}, "Moment":{...}, "[]":{"0":{"Comment":{...}...}}}, "1":{...}...}}<br /><br />②{"status":200, "message":"success", "User":{...}, "[]":{"0":{"Moment":{"id":1, "content":"xxx"...}, "[]":{"0":{"Comment":{...}...}}}, "1":{...}...}}<br /><br />③{"status":200, "message":"success", "[]":{"0":{"Moment":{"id":1, "content":"xxx"...}, "[]":{"0":{"Comment":{...}...}}}, "1":{...}...}}
185185

186-
1.base_url指基础url,一般是顶级域名,其它分支url都是在base_url后扩展。如base_url:http://www.xxx.com/ ,对应的GET分支url:http://www.xxx.com/get/ ,下同。<br >
186+
1.base_url指基地址,一般是顶级域名,其它分支url都是在base_url后扩展。如base_url:http://www.xxx.com/ ,对应的GET分支url:http://www.xxx.com/get/ ,下同。<br >
187187
2.APIJSON不需要接口、文档及兼容旧版客户端的特性仅针对GET和HEAD请求,好在这两个在所有请求里占大部分。
188188

189189

0 commit comments

Comments
 (0)