{Domain name address}/api/archive/publish
illustrate:{域名地址}
You need to replace it with your domain address, such as/api/archive/publish
POST application/json
Field name |
type |
Required |
illustrate |
title |
string |
yes |
Document title |
content |
string |
yes |
Document content |
category_id |
int |
yes |
Document Classification ID |
keywords |
string |
no |
Document keywords |
Description |
string |
no |
Document introduction, less than 250 words |
url_token |
string |
no |
Custom URL alias, only support numbers and English letters |
images |
string[] |
no |
For article group pictures and arrays, you can set up to 9 pictures. Please repeat this field for multiple pictures. The first one is logo |
created_time |
int |
no |
Format: timestamp. The release time of the document can be the future time. If it is the future time, the document will not be officially released until the time has come. |
tags |
string[] |
no |
Document Tag Tag, Array |
Other custom fields |
any |
no |
If you have passed other custom fields, and the field exists in the document model, it is also supported. |
price |
int |
no |
Price, unit, integer |
stock |
int |
no |
in stock |
read_level |
int |
no |
Reading Level |
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 |
link |
string |
Document link |
user_id |
int |
User ID |
status |
int |
Review status, 1 has been reviewed, 0 is under review |
{
"title": "Welcome to anqicms",
"content": "<p>Welcome to anqicms</p>",
"category_id":2,
"images": ["/uploads/arc1.png","/uploads/arc2.png"],
"tags": ["Anqi CMS","anqicms"],
"quality": "HD"
}
{
"code": 0,
"data": {
"id": 33,
"link": "/article/33.html",
"status": 0,
},
"msg": "Release Successfully"
}
Error code |
illustrate |
0 |
OK |
-1 |
Error, the cause of the error is pointed out in msg |
1001 |
Not logged in |
1002 |
Unauthorized |