Retrieve the content parameters of the website backend custom settings, used to obtain various parameter information configured by the administrator in the backend.
Precautions
- This interface uses the GET method
- Access to this interface does not require login.
- Return the configuration parameters set in the admin custom content settings on the backend
- The custom parameters are determined by the backend 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:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/setting/diy
Request syntax
GET {域名地址}/api/setting/diy
Request header
This interface also involves common request headers. For more information, please seeCommon Request Headers (Common Request Headers).
Request Parameters
None
Response Headers
This interface only involves public response headers. More information, please refer toCommon Request Headers (Common Request Headers).
Return parameters
| Field Name | Type | Description |
|---|---|---|
| code | integer | Error code |
| message | string | Error Description |
| data | object | Custom content data |
data Parameter
| Field Name | Type | Description |
|---|---|---|
| HelpUrl | string | Help page URL (example: custom parameter) |
| Other custom parameters | string/number/object | Other parameters determined by the backend custom settings |
Example Usage
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 | Unauthorized |
| 200 | API request OK |