API call address
{域名地址}/api/archive/params
illustrate:{域名地址}
You need to replace it with your domain address, such ashttps://en.anqicms.com/api/archive/params
Calling methods
GET
Request parameters
Field name |
type |
Required |
illustrate |
id |
int |
no |
Parameters according to the document id to get the specified document parameters |
sorted |
int |
no |
The supported values are: false|true, when sorted=false, an unordered map object is obtained, and data needs to be accessed using the dot notation.When sorted=true, the retrieval is an array object with a fixed sort.The array is fixed and sorted by default, so a for loop must be used to retrieve and output it. |
Return parameters
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
data |
object[] or object |
Results content |
Data result item information
extra Displayed based on model settings, field structure is key => item:
key is the field name, item is the content:
Field name |
type |
illustrate |
name |
string |
Field name |
value |
string |
The value filled in |
default |
string |
default value |
Request data example
parameter |
value |
id |
1 |
sorted |
true |
Return to the data example
Returns value when sorted=true
{
"code": 0,
"data": [
{
"name": "作者",
"value": "AnqiCMS",
"default": ""
},
{
"name": "城市",
"value": "北京\n上海\n重庆\n广州\n天津",
"default": "北京\n上海\n重庆\n广州\n天津"
},
{
"name": "学历",
"value": "硕士\n本科\n大专\n高中\n初中",
"default": "硕士\n本科\n大专\n高中\n初中"
}
],
"msg": ""
}
Returns value when sorted=false
{
"code": 0,
"data": {
"author": {
"name": "作者",
"value": "AnqiCMS",
"default": ""
},
"certificate": {
"name": "学历",
"value": "硕士\n本科\n大专\n高中\n初中",
"default": "硕士\n本科\n大专\n高中\n初中"
},
"city": {
"name": "城市",
"value": "北京\n上海\n重庆\n广州\n天津",
"default": "北京\n上海\n重庆\n广州\n天津"
}
},
"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 |