获取文章详情接口
接口地址
http://www.brighttj.com/api/index.php/api/article/articleById
请求方式
GET / POST
入参
参数名称 | 参数含义 | 参数类型 | 是否必须 | 备注 |
---|---|---|---|---|
articleId | 文章id | int | 是 |
出参
{
"data":{
"articleInfo":{
"id":"1152",
"content":"5peg5oSP6Ze055yL5Yiw5LiA5Liq5b2p6ImyVGFiQmFy5YiH5o2i55qE6K6+6K6h5Zu+77yM5oSf6KeJ5b6I5LiN6ZSZ77yM5pyJ56m65bCx5oqK5LuW5a6e546w5LqG44CCDQoNCueOr+WsNCiAgICAgICAgfSBjb21wbGV0aW9uOk5VTExdOw0KICAgIH1dOw0KfTwvY29kZT48L3ByZT4=",
"title":"【iOS】46.彩色TabBar切换动画实现",
"date":"2015-07-03 11:10:23",
"commentCount":"3",
"views":"52",
"author":{
"name":"唐嘉蓉",
"id":"3"
},
"categorys":[{
"id":"49",
"name":"ios",
"count":"52"
}],
"comments":[{
"id":"375",
"author":"yun",
"authorEmail":"[email protected]",
"date":"2015-07-04 13:21:30",
"content":"学习学习,研究研究,呵呵"
},
{
"id":"379",
"author":"Cinux",
"authorEmail":"[email protected]",
"date":"2015-07-06 10:17:03",
"content":"学习。博主,有空写一下关于NSRunloop相关东西嘛,比如说为什么要用,分析,怎么用等等。。。静候佳音"
}]
}
},
"msg":"读取成功",
"status":1
}
字段解析
参数名称 | 参数含义 | 参数类型 |
---|---|---|
articleInfo | 文章信息 | map |
id | 文章id | int |
content | 文章内容(base64编码) | string |
date | 文章发布时间 | string |
title | 文章标题 | string |
commentCount | 文章评论量 | int |
views | 文章浏览量 | int |
author | 作者信息 | map/dictionary |
author[id] | 作者id | int |
author[name] | 作者名称 | string |
categorys | 文章分类列表 | array |
category[id] | 文章分类id | int |
category[name] | 文章分类名称 | string |
category[count] | 分类中文章数量 | int |
comments | 评论列表 | array |
comment[id] | 评论id | int |
comment[author] | 评论人名称 | string |
comment[authorEmail] | 评论邮箱 | string |
comment[date] | 评论时间 | string |
comment[content] | 评论内容 | string |