API call address
{域名地址}/api/archive/filters
illustrate:{域名地址}
You need to replace it with your domain address, such ashttps://en.anqicms.com/api/archive/filters
Calling methods
GET
Request parameters
Field name |
type |
Required |
illustrate |
moduleId |
int |
yes |
Model ID |
Return parameters
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
data |
object[] |
Results content |
data result parameter
Field name |
type |
illustrate |
name |
string |
Filter name |
field_name |
string |
Filter field call name |
Items |
object[] |
Filter parameter list |
Filter parameter list item
Field name |
type |
illustrate |
label |
string |
Parameter Options |
Total |
int |
quantity |
Request data example
parameter |
value |
moduleId |
1 |
Return to the data example
{
"code": 0,
"data": [
{
"name": "城市",
"field_name": "city",
"items": [
{
"label": "全部",
"total": 0
},
{
"label": "北京",
"total": 0
},
{
"label": "上海",
"total": 0
},
{
"label": "重庆",
"total": 0
},
{
"label": "广州",
"total": 0
},
{
"label": "天津",
"total": 0
}
]
},
{
"name": "学历",
"field_name": "certificate",
"items": [
{
"label": "全部",
"total": 0
},
{
"label": "硕士",
"total": 0
},
{
"label": "本科",
"total": 0
},
{
"label": "大专",
"total": 0
},
{
"label": "高中",
"total": 0
},
{
"label": "初中",
"total": 0
}
]
}
],
"msg": ""
}
Error code
Error code |
illustrate |
0 |
OK |
-1 |
Error, the error reason is indicated in msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API Request OK |