API call address
{域名地址}/api/category/detail
illustrate:{域名地址}
You need to replace it with your domain address, such ashttps://en.anqicms.com/api/category/detail
Calling methods
GET
Request parameters
Field name |
type |
Required |
illustrate |
id |
int |
yes |
Category ID, if filename is provided, ID is not required |
filename |
string |
no |
Category URL alias, either Category ID or filename is required |
catname |
string |
no |
Category URL alias, the same as filename |
Return parameters
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
data |
object |
Results content |
data Parameters
Field name |
type |
illustrate |
id |
int |
Category ID |
parent_id |
int |
Category Parent ID |
title |
string |
Category Name |
seo_title |
string |
Category SEO Title |
url_token |
string |
Category URL alias |
keywords |
string |
Classification keywords |
Description |
string |
Category Introduction |
module_id |
int |
Model ID |
content |
string |
Category content details |
type |
int |
Classification attribute value, 1 category, 3 single pages |
sort |
int |
Classification sorting values |
images |
string[] |
Category Banner Image |
logo |
string |
Classification thumbnails |
thumb |
string |
Classification thumbnails |
created_time |
int |
Classified publishing timestamp |
updated_time |
int |
Classification update timestamp |
status |
int |
Classification display status |
Request data example
Return to the 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>",
"module_id": 1,
"parent_id": 0,
"type": 1,
"sort": 1,
"images": [],
"logo": "",
"status": 1,
"thumb": "https://en.anqicms.com/uploads/202012/7/bd36c37ef742c7be.webp"
},
"msg": ""
}
Error code
Error code |
illustrate |
0 |
OK |
-1 |
Error, the error reason is indicated in msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API Request OK |