Get document parameters interface

API Call Address

{域名地址}/api/archive/params

Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/archive/params

Calling method

GET

Request parameters

Field name Type Required Description
id int No Parameters are obtained according to the document id
sorted int No

Return parameters

Field name Type Description
code int error code
msg string error reason description
data object[] or object result content
data result item information

extra Based on the model settings, the field structure is key => item: key is the form field name, item is the content:

Field name Type Description
name string Field Name
Value string The entered value
Default string Default Value

request data example

Parameter Value
id 1
sorted true

Return Data Example

value returned 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": ""
}

value returned 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 Description
0 OK
-1 Error, the reason is indicated in the msg
1001 Not logged in
1002 Unauthorized
200 API request OK