Created
March 3, 2013 12:50
-
-
Save dingyaguang117/5075986 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.首页数据 | |
请求格式: | |
/home/list.do | |
参数: | |
{ | |
"header": | |
{ | |
"version":"1.0", | |
"system":"ios5.1" | |
}, | |
"body": | |
{ | |
"skip":0, | |
"limit":10 | |
} | |
} | |
Return Data | |
{ | |
"header": | |
{ | |
"status":0 | |
"msg":"ok" | |
}, | |
"body": | |
{ | |
"data": | |
[ | |
{ | |
"duanziId":"123", | |
"username":"", | |
"avatar":"http://1.com/1.jpg", | |
"text":"", | |
"commentNum":10 | |
} | |
] | |
} | |
} | |
2.段子详情 | |
请求格式: | |
/home/detail.do | |
参数: | |
{ | |
"header": | |
{ | |
"version":"1.0", | |
"system":"ios5.1" | |
}, | |
"body": | |
{ | |
"duanziId":"123" | |
} | |
} | |
Return Data | |
{ | |
"header": | |
{ | |
"status":0 | |
"msg":"ok" | |
}, | |
"body": | |
{ | |
"data": | |
{ | |
"duanziId":"123" | |
"username":"", | |
"avatar":"http://1.com/1.jpg", | |
"text":"", | |
"commentNum":10, | |
"commentList": | |
[ | |
{ | |
"commentId":"123" | |
"username":"", | |
"avatar":"http://1.com/1.jpg", | |
"text":"" | |
}, | |
... | |
] | |
} | |
} | |
} | |
3.段子评论 | |
请求格式: | |
/home/comment.do | |
参数: | |
{ | |
"header": | |
{ | |
"version":"1.0", | |
"system":"ios5.1" | |
}, | |
"body": | |
{ | |
"duanziId":"123", | |
"skip":0, | |
"limit":10 | |
} | |
} | |
Return Data | |
{ | |
"header": | |
{ | |
"status":0 | |
"msg":"ok" | |
}, | |
"body": | |
{ | |
"data": | |
[ | |
{ | |
"commentId":123 | |
"username":"", | |
"avatar":"http://1.com/1.jpg", | |
"text":"" | |
}, | |
... | |
] | |
} | |
} | |
4.段子 添加评论 | |
请求格式: | |
/home/add_comment.do | |
参数: | |
{ | |
"header": | |
{ | |
"version":"1.0", | |
"system":"ios5.1" | |
}, | |
"body": | |
{ | |
"duanziId":"", | |
"userId":"", | |
"userAvatar":"", | |
"text":"" | |
} | |
} | |
Return Data | |
{ | |
"header": | |
{ | |
"status":0 | |
"msg":"ok" | |
}, | |
"body": | |
{ | |
"data": | |
{ | |
"commentId":"" | |
} | |
} | |
} | |
5.登陆 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment