Get Single Page List Interface

API Call Address

{域名地址}/api/page/list

Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/page/list

Calling method

GET

Request parameters

None

Return parameters

Field name Type Description
code int error code
msg string error reason description
data object[] result content

data result item parameters

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

None

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"
    },
    {
      "id": 2,
      "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