{域名地址}/api/archive/detail
illustrate:{域名地址}
You need to replace it with your domain address, such as/api/archive/detail
GET
Field name |
type |
Required |
illustrate |
id |
int |
yes |
Document ID, if filename is passed, you don't need to pass the ID |
filename |
string |
no |
Document URL alias, document ID, filename, choose one |
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
data |
object |
Results content |
Field name |
type |
illustrate |
id |
int |
Document ID |
title |
string |
Document title |
seo_title |
string |
Document SEO title |
url_token |
string |
Document URL alias |
keywords |
string |
Document keywords |
Description |
string |
Document Introduction |
module_id |
int |
Document model ID |
category_id |
int |
Document Classification ID |
views |
int |
Document view count |
comment_count |
int |
Document comments |
images |
string[] |
Document group photo |
logo |
string |
Document Logo |
thumb |
string |
Document thumbnails |
flag |
string |
Document recommendation attributes, headlines[h]recommended[c]slide[f]special recommendation[a]scroll[s]bold[h]pics[p]jump[j] |
canonical_url |
string |
canonical url |
fixed_link |
string |
Document Permalink |
created_time |
int |
Document release timestamp |
updated_time |
int |
Document update timestamp |
status |
int |
Document display status |
user_id |
int |
User ID |
price |
int |
Price, unit points |
stock |
int |
Inventory quantity |
user_id |
int |
User ID |
category |
object |
Document classification information |
data |
object |
Document content information |
extra |
object |
Other fields information of the document |
Field name |
type |
illustrate |
id |
int |
Classification ID |
parent_id |
int |
Classification superior ID |
title |
string |
Category Name |
seo_title |
string |
Classified SEO titles |
url_token |
string |
Classified 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[] |
Classification Banner Chart |
logo |
string |
Classification thumbnails |
thumb |
string |
Classification thumbnails |
created_time |
int |
Document release timestamp |
updated_time |
int |
Document update timestamp |
status |
int |
Document display status |
Field name |
type |
illustrate |
id |
int |
Classification ID |
content |
string |
Document content details |
extra fields are displayed according to the model set, and the field structure is key => item:
key form field call name, item is the content:
Field name |
type |
illustrate |
name |
string |
Field name |
value |
string |
The value filled in |
default |
string |
default value |
{
"code": 0,
"data": {
"id": 1,
"created_time": 1607308159,
"updated_time": 1662717106,
"title": "欢迎使用AnqiCMS",
"seo_title": "",
"url_token": "anqicms",
"keywords": "",
"description": "欢迎使用AnqiCMS",
"module_id": 1,
"category_id": 1,
"views": 1338,
"comment_count": 0,
"images": null,
"status": 1,
"canonical_url": "",
"fixed_link": "",
"flag": "",
"user_id": 0,
"price": 0,
"stock": 9999999,
"category": {
"id": 1,
"created_time": 1607308159,
"updated_time": 1657761249,
"title": "AnqiCMS帮助",
"seo_title": "",
"keywords": "",
"url_token": "goruning",
"description": "",
"content": "<p>欢迎使用AnqiCMS</p>",
"module_id": 1,
"parent_id": 0,
"type": 1,
"sort": 1,
"images": [],
"logo": "/uploads/202012/7/bd36c37ef742c7be.webp",
"status": 1,
"thumb": "/uploads/202012/7/thumb_bd36c37ef742c7be.webp",
},
"data": {
"id": 1,
"content": "<p>欢迎使用AnqiCMS</p>"
},
"logo": "/uploads/202012/7/bd36c37ef742c7be.webp",
"thumb": "/uploads/202012/7/thumb_bd36c37ef742c7be.webp",
"extra": {
"author": {
"name": "作者",
"value": "AnqiCMS",
"default": ""
}
},
"link": ""
},
"msg": ""
}
Error code |
illustrate |
0 |
OK |
-1 |
Error, the cause of the error is pointed out in msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API request OK |