Get the basic system configuration information of the website, including website name, Logo, filing number, copyright information, and other system-level setting parameters.
Points to note
- This interface uses the GET method
- Access this interface without logging in.
- Return the basic configuration information of the website administrator in the background system settings
- Contains the basic information of the website and custom system parameters
- System setting information is used for website basic functions and display configuration
Request address
{ๅๅๅฐๅ}/api/setting/system
Description:{ๅๅๅฐๅ}Replace it with your domain name, such ashttps://en.anqicms.com/api/setting/system
Request Syntax
GET {ๅๅๅฐๅ}/api/setting/system
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 | System Settings Data |
data parameter
| Field name | Type | Description |
|---|---|---|
| SiteName | string | Website Name |
| SiteLogo | string | Website Logo Image Address |
| SiteIcp | string | Website registration number |
| SiteCopyright | string | Copyright content |
| BaseUrl | string | Home Page Address |
| MobileUrl | string | Mobile Website Address |
| TemplateUrl | string | Template static file address |
| AdminUrl | string | Admin Backend Address |
| Language | string | Website Language Settings |
| Site Close | int | Website status, 0-Open, 1-Closed |
| SiteCloseTips | string | Website close tip information |
| TemplateName | string | Current template name |
| Template Type | int | Template Type |
| Help URL | string | Help URL (Example: Custom Parameters) |
Usage Example
Request example
GET /api/setting/system HTTP/1.1
Host: www.anqicms.com
Response Example
{
"code": 0,
"msg": "",
"data": {
"SiteName": "่ฟๆฏ็ฝ็ซๆ ้ข2",
"SiteLogo": "http://www.anqicms.com/uploads/20225/22/555288fdec958ee7.webp",
"SiteIcp": "็ฒคICPๅค12345678ๅท",
"SiteCopyright": "<p>็ๆๆๆ๏ผไปฟๅๅฟ
็ฉถ</p>",
"BaseUrl": "http://www.anqicms.com",
"MobileUrl": "https://m.anqicms.com/",
"TemplateUrl": "",
"AdminUrl": "",
"Language": "zh",
"SiteClose": 0,
"SiteCloseTips": "",
"TemplateName": "default",
"TemplateType": 0,
"HelpUrl": "https://en.anqicms.com/help"
}
}
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 |