Skip to content

Instantly share code, notes, and snippets.

@dingyaguang117
Created March 3, 2013 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dingyaguang117/5075986 to your computer and use it in GitHub Desktop.
Save dingyaguang117/5075986 to your computer and use it in GitHub Desktop.
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