获取文章列表

简要描述
  • 文章目前缺少内容。
请求URL
  • http://{{myHost}}/api/alone-admin/article
请求方式
  • get
请求参数
参数名 必选 类型 说明
page string 页码
pageSize string 默认返回10条数据。一页多少条数据
返回示例
{
  "error_code": 0,
  "msg": "success!",
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": 1,
        "title": "昆明高港区的柳玉英太太",
        "is_top": 0,
        "category_id": 0,
        "status": 0,
        "keywords": "先生",
        "description": null,
        "image": "https://via.placeholder.com/640x480.png/002200?text=perferendis",
        "content": "西宁萧山区",
        "read_num": 0,
        "zan_num": 0,
        "created_at": "2021-03-04T08:44:13.000000Z",
        "updated_at": "2021-03-04T08:44:13.000000Z"
      },
      {
        "id": 2,
        "title": "银川中原区的沙桂芳经理",
        "is_top": 0,
        "category_id": 0,
        "status": 0,
        "keywords": "医生",
        "description": null,
        "image": "https://via.placeholder.com/640x480.png/0011ee?text=vitae",
        "content": "济南山亭区",
        "read_num": 0,
        "zan_num": 0,
        "created_at": "2021-03-04T08:44:13.000000Z",
        "updated_at": "2021-03-04T08:44:13.000000Z"
      }
    ],
    "first_page_url": "http://www.alone.test/api/alone-admin/article?page=1",
    "from": 1,
    "last_page": 25,
    "last_page_url": "http://www.alone.test/api/alone-admin/article?page=25",
    "links": [
      {
        "url": null,
        "label": "« Previous",
        "active": false
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=1",
        "label": 1,
        "active": true
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=2",
        "label": 2,
        "active": false
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=3",
        "label": 3,
        "active": false
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=4",
        "label": 4,
        "active": false
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=5",
        "label": 5,
        "active": false
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=6",
        "label": 6,
        "active": false
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=7",
        "label": 7,
        "active": false
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=8",
        "label": 8,
        "active": false
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=9",
        "label": 9,
        "active": false
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=10",
        "label": 10,
        "active": false
      },
      {
        "url": null,
        "label": "...",
        "active": false
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=24",
        "label": 24,
        "active": false
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=25",
        "label": 25,
        "active": false
      },
      {
        "url": "http://www.alone.test/api/alone-admin/article?page=2",
        "label": "Next »",
        "active": false
      }
    ],
    "next_page_url": "http://www.alone.test/api/alone-admin/article?page=2",
    "path": "http://www.alone.test/api/alone-admin/article",
    "per_page": "2",
    "prev_page_url": null,
    "to": 2,
    "total": 50
  }
}
备注