Interface for getting customized content

Retrieve the content parameters of the website backend custom settings, used to obtain various parameter information customized by the administrator in the backend.

Points to note

  • This interface uses the GET method
  • Access this interface without logging in.
  • Return the configuration parameters of the website administrator in the custom content settings on the back-end
  • Custom parameters are determined by the back-end settings and may include various custom fields
  • Custom parameter name and content are determined by the website administrator in the background

Request address

{域名地址}/api/setting/diy

Description:{域名地址}Replace it with your domain name, such ashttps://en.anqicms.com/api/setting/diy

Request Syntax

GET {域名地址}/api/setting/diy

Request Headers

This interface also involves common request headers. For more information, please refer toCommon Request Headers (Common Request Headers).

Request parameters

None

Response header

This interface only involves public response headers. For more information, please refer toCommon Request Headers (Common Request Headers).

Return parameters

Field name Type Description
code int Error code
msg string Error description
data object Custom content data

data parameter

Field name Type Description
Help URL string Help URL (Example: Custom Parameters)
Other custom parameters string/number/object Parameters set according to the custom settings on the backend

Usage Example

Request example

GET /api/setting/diy HTTP/1.1
Host: www.anqicms.com

Response Example

{
  "code": 0,
  "msg": "",
  "data": {
    "HelpUrl": "https://en.anqicms.com/help",
    "CustomField1": "自定义内容1",
    "CustomField2": "自定义内容2"
  }
}

error code

Error code Description
0 OK
-1 Error, the reason is indicated in msg
1001 Not logged in
1002 Not authorized
200 API request OK