你好,兽总,我现在基于Nutz Http API, 在写一个android客户端
请问可以加一个 搜索帖子的接口吗?
2 回复
说的是nutzcn吧? 有的
/yvr/search
参数:
q 需要搜索的字符串
format 默认是页面,传json的话,返回json字符串
//-------------------------
{
"suggestions": [{
"id": "74j4ttku98j3gqh9mh5tfmgeot", // 帖子id
"title": "NutzWk非maven版", // 标题
"type": "ask", // 类型
"content": null,
"contentId": "t1m5d84e24jp2qo956mr0o7tpr",
"tags": ["nutzwk"], //标签
"userId": 220, // 用户id
"top": false, // 置顶帖?
"good": true, // 精华帖
"lock": false,
"lastComment": null,
"collectors": null,
"replies": null,
"author": null,
"createTime": "2016-11-16 11:27:49",
"updateTime": "2016-11-16 11:27:49"
}, {
"id": "s8hkq0quf8hfvr6pps9gah0rn1",
"title": "Maven Install",
"type": "ask",
"content": null,
"contentId": "tp64fbfiacj9crsk29si32e49k",
"tags": [],
"userId": 8811,
"top": false,
"good": false,
"lock": false,
"lastComment": null,
"collectors": null,
"replies": null,
"author": null,
"createTime": "2016-10-17 11:39:14",
"updateTime": "2016-10-17 11:39:14"
}, {
"id": "omevr5ef6cji3r59545f6a2t8h",
"title": "请问有没有maven版的部署文档",
"type": "ask",
"content": null,
"contentId": "qoohsegivaiusooq4ashhgt4uu",
"tags": ["nutzwk"],
"userId": 720,
"top": false,
"good": false,
"lock": false,
"lastComment": null,
"collectors": null,
"replies": null,
"author": null,
"createTime": "2016-06-22 15:28:01",
"updateTime": "2016-06-22 15:28:01"
}]
}
//--------------------------
添加回复
请先登陆