文档
测试

书籍分类

GET
http://127.0.0.1:8000/category/

接口描述

书籍分类接口

请求参数

参数名
类型
描述
必填
page
Int
页码 (默认为1)
必填
pagesize
Int
每页条数 (默认为10,最大值为30)
必填

响应参数

参数名
类型
描述
必填
count
Int
分类总数
必填
status
Int
请求状态码(200:请求成功)
必填
data
Array
分类数据列表
必填
next
String
下一页url
必填
previous
String
上一页url
必填
id
Int
分类id
必填
name
String
分类名称
必填
info
String
分类描述
必填
coverImage
String
分类图片
必填

说明 / 示例

``` { "count": 14, "next": "http://127.0.0.1:8000/category/?page=2", "previous": null, "status": 200, "data": [ { "id": 1, "name": "玄幻", "info": "玄幻", "coverImage": "https://bookcover.yuewen.com/qdbimg/349573/1015105126/180" }, .......... ] } ```