The import document interface returns a format issue, the code is inconsistent

Calendar 👁️ 235

The format of the return:

{

"code": 0,

"msg": "Published successfully"

"data": {

"url":"/..."

}

}

The format of the official documentation:

{

"code": 200,

"msg": "Published successfully"

"data": {

"url":"/..."

}

}

Related articles

How to retain the operation of the data after the Anqi website changes the server

Is there a tutorial

2024-10-16

Suggest to support adding redis caching functionality,

Suggest to support adding redis caching functionality, to avoid session loss when restarting, and it is convenient for multi-server load balancing

2024-08-03

The login interface cannot be used

Login request: https://en.anqicms.com/api/login Parameters platform:website user_name:admin password:123456 remember:false The request always returns: { "code": -1, "msg": "EOF" } The registration interface is the same, what is the problem

2024-07-23

The 8.0 free version of the Baota panel for the new Windows version cannot be installed at present.

The new version 8.0 of the Baota panel for Windows is currently unable to be installed. There are no other options on the website.

2024-07-20

The import document interface returns a format issue, the code is inconsistent

Return format: { "code": 0, "msg": "Published successfully", "data": { "url":"https://en.anqicms.com/..." } } Official documentation format: { "code": 200, "msg": "Published successfully", "data": { "url":"https://en.anqicms.com/..." }

2024-10-23

Document sorting issue.

The document model's sorting field: sort, cannot be updated in the background or via the API. This causes the document to be unable to be manually sorted

2025-02-24

Backup data bug

Some SQL statements are missing a semicolon at the end

2025-03-21

Time factor automatic update time bug

Set the maximum number of updates per day, but still update all articles that meet the conditions

2025-05-07