获取-搜索结果
GET
/v1_0/search获取搜索的结果列表
请求参数
Query 参数
page
string
当前页码数
示例值:
1
per_page
string
可选
当前页需要的数据条数(如果不传后台默认返回10个)
示例值:
10
q
string
搜索关键词
示例值:
js
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
object
响应数据
message
string
响应消息
示例
成功示例
{
"data": {
"page": 1,
"per_page": 10,
"results": [
{
"art_id": "254",
"title": "代码分享:体现js灵活性的def.js",
"aut_id": "1111",
"aut_name": "黑马先锋",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"cover": {
"type": 3,
"images": [
"http://geek.itheima.net/resources/images/49.jpg",
"http://geek.itheima.net/resources/images/29.jpg",
"http://geek.itheima.net/resources/images/72.jpg"
]
},
"like_count": 0,
"collect_count": 0
},
{
"art_id": "263",
"title": "原来你是这样的 jsonp(原理与具体实现细节)",
"aut_id": "1111",
"aut_name": "黑马先锋",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/resources/images/69.jpg"
]
},
"like_count": 0,
"collect_count": 0
},
{
"art_id": "291",
"title": "不一样的ZTree,权限树.js插件",
"aut_id": "1111",
"aut_name": "黑马先锋",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"cover": {
"type": 3,
"images": [
"http://geek.itheima.net/resources/images/21.jpg",
"http://geek.itheima.net/resources/images/80.jpg",
"http://geek.itheima.net/resources/images/10.jpg"
]
},
"like_count": 0,
"collect_count": 0
},
{
"art_id": "307",
"title": "echarts 数据、样式配置分离,jquery组件 让echarts用起来更加方便\n顶\n原\n荐 mmecharts.js 目录",
"aut_id": "1111",
"aut_name": "黑马先锋",
"comm_count": 1,
"pubdate": "2019-03-11 09:00:00",
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/resources/images/17.jpg"
]
},
"like_count": 0,
"collect_count": 0
},
{
"art_id": "318",
"title": "用 js 获取页面元素的位置图文总结",
"aut_id": "1111",
"aut_name": "黑马先锋",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"cover": {
"type": 0
},
"like_count": 0,
"collect_count": 0
},
{
"art_id": "358",
"title": "Angularjs 与三方js插件配合使用,并通过模板动态解析angularjs 语法\n顶\n原\n荐",
"aut_id": "1111",
"aut_name": "黑马先锋",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"cover": {
"type": 3,
"images": [
"http://geek.itheima.net/resources/images/65.jpg",
"http://geek.itheima.net/resources/images/48.jpg",
"http://geek.itheima.net/resources/images/2.jpg"
]
},
"like_count": 0,
"collect_count": 0
},
{
"art_id": "360",
"title": "jsonp和cors实现跨域\n原\n荐",
"aut_id": "1111",
"aut_name": "黑马先锋",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"cover": {
"type": 0
},
"like_count": 0,
"collect_count": 0
},
{
"art_id": "385",
"title": "【全文】狼叔:如何正确的学习Node.js\n顶\n原\n荐 说明 【全文】狼叔:如何正确的学习Node.js",
"aut_id": "1111",
"aut_name": "黑马先锋",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/resources/images/78.jpg"
]
},
"like_count": 0,
"collect_count": 0
},
{
"art_id": "415",
"title": "合格前端系列第十一弹-初探 Nuxt.js 秘密花园\n顶\n原\n荐",
"aut_id": "1111",
"aut_name": "黑马先锋",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/resources/images/24.jpg"
]
},
"like_count": 0,
"collect_count": 0
},
{
"art_id": "435",
"title": "web3.js中estimateGas如何计算智能合约消耗的gas量\n原\n荐",
"aut_id": "1111",
"aut_name": "黑马先锋",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/resources/images/38.jpg"
]
},
"like_count": 0,
"collect_count": 0
}
],
"total_count": 237
},
"message": "OK"
}
最后修改时间: 3 年前