API Call Address
{域名地址}/api/page/detail
Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/page/detail
Calling method
GET
Request parameters
| Field name |
Type |
Required |
Description |
| id |
int |
Yes |
Single Page ID, if filename is passed, ID is not required |
| filename |
string |
No |
Single page URL alias, either single page ID or filename is required |
Return parameters
| Field name |
Type |
Description |
| code |
int |
error code |
| msg |
string |
error reason description |
| data |
object |
result content |
data parameter
| Field name |
Type |
Description |
| id |
int |
Single-page ID |
| title |
string |
Single Page Name |
| seo_title |
string |
Single Page SEO Title |
| url_token |
string |
Single page URL alias |
| Keywords |
string |
Single Page Keywords |
| Description |
string |
Single Page Description |
| content |
string |
Single Page Content Details |
| type |
int |
Single page attributes, 1 Single page, 3 Single page |
| Sort |
int |
Single page sort value |
| images |
string[] |
Single page Banner Image |
| Logo |
string |
Single Page Thumbnail |
| Thumb |
string |
Single Page Thumbnail |
| Created Time |
int |
Single Page Publish Timestamp |
| updated_time |
int |
Single Page Update Timestamp |
| status |
int |
Single Page Display Status |
request data example
Return Data Example
{
"code": 0,
"data": {
"id": 1,
"created_time": 1607308159,
"updated_time": 1657761249,
"title": "AnqiCMS使用帮助",
"seo_title": "",
"keywords": "",
"url_token": "help",
"description": "",
"content": "<p><br/></p>",
"type": 3,
"sort": 1,
"images": [],
"logo": "",
"status": 1,
"thumb": "https://en.anqicms.com/uploads/202012/7/bd36c37ef742c7be.webp"
},
"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 |