获取首页博客列表接口

地址:

/HomePage/Articles

方法:

GET

是否需要登录:

参数说明:

参数名称 是否必选 参数类型 参数描述
categoryId Integer 类目id
offset String 页面上显示的最后一篇文章的发表时间,格式为'2016-07-05 00:00:00',首次可不传
size String 加载数量,可不传,默认大小为10

请求示例:

curl -d "categoryId=1&pageSize=5&offset='2016-07-05 00:00:00'" '/HomePage/Articles'

返回示例:

{"code":200,"message":"请求成功","data":
            [
            {"webUser":{"nickname":"1@qq.com"},"userArticle":{"webUserId":1,"categoryId":1,"title":"第35篇","content":"阿水电费","readTimes":1,"thumbupTimes":1,"isMainPage":0,"status":0,"commentTimes":1,"id":33,"createTime":"2016-06-18 00:02:11","updateTime":"2016-06-18 00:02:11"},"friendlyTime":"大约发表于17天前"},
            {"webUser":{"nickname":"1@qq.com"},"userArticle":{"webUserId":1,"categoryId":1,"title":"第34篇","content":"阿水电费","readTimes":1,"thumbupTimes":1,"isMainPage":0,"status":0,"commentTimes":1,"id":32,"createTime":"2016-06-18 00:02:09","updateTime":"2016-06-18 00:02:09"},"friendlyTime":"大约发表于17天前"}
            ]}
<