获取文章详细信息接口

地址:

/Article/GetArticleInfo

方法:

GET

是否需要登录:

参数说明:

参数名称 是否必选 参数类型 参数描述
articleId int 文章id

请求示例:

curl -d 'articleId=1' '/Article/GetArticleInfo'

返回值说明:

参数名称 是否必选 参数类型 参数描述
webUser WebUser 文章用户信息类
webUser.id Integer 文章用户id
webUser.username string 文章用户名称
webUser.nickname string 文章用户昵称
blogConfig BlogConfig 用户博客配置信息类
blogConfig.id Integer 用户博客id
blogConfig.introduction string 用户个人介绍
blogConfig.address string 用户博客地址
blogConfig.blogTitle string 用户博客标题
blogConfig.blogSubTitle string 用户博客小标题
categoryName CategoryName 文章分类信息类
categoryName.id Integer 文章分类id
categoryName.categoryName string 文章分类名称
userArticle UserArticle 文章信息类
userArticle.title string 文章标题
userArticle.content string 文章内容
userArticle.readTimes Integer 文章阅读次数
userArticle.thumbupTimes Integer 文章点赞次数
userArticle.commentTimes Integer 文章评论条数
userArticle.createTime string 文章创建时间
userArticle.updateTime string 文章上次更新时间

返回示例:

{"code":200,"message":"请求成功","data":{"webUser":{"username":"zuoxiaolong","nickname":"草帽","id":1},"blogConfig":{"introduction":"我是你们的草帽","address":"www.google.com","blogTitle":"看这里","blogSubTitle":"就是这里","id":1},"userArticle":{"webUserId":1,"categoryId":1,"title":"第一篇测试","content":"这是我的第一篇博客","readTimes":267,"thumbupTimes":42,"isMainPage":1,"status":2,"commentTimes":34,"id":1,"createTime":"2016-05-15 15:12:07","updateTime":"2016-07-04 20:36:59"},"articleCategory":{"categoryName":"技术","id":1}}}