返回指定章节下的段落。
Request
HTTP request
GET https://www.featapi.com/api/dimzou/paragraph/
Parameters
- Query parameters
Parameter name | Value | Description |
---|---|---|
Optional parameters | ||
page | string | page number |
page_size | string | page size |
node | string | 章节ID |
type | string | Paragraph.Type |
授权
此请求需要具有以下所有范围的授权:
Scopes |
---|
无 |
有关更多信息,请参阅认证和授权页面。
Request body
无
Response
如果成功,则此方法在响应正文中返回Dimzou.paragraph资源。
200 返回段落成功
{
"data": [
{
"id": 346095,
"sort": null,
"info": null,
"node_id": 1754,
"rewordings": [
{
"id": 356098,
"user": {
"uid": 5215999252276,
"avatar": "http://127.0.0.1:8000/media/5215999252276/avatar/5215999252276.jpg",
"expertise": "健身教练",
"firstname": "小红",
"lastname": "甘",
"username": "小红 甘",
"timezone": "America/New_York",
"timezone_utc_offset": "-04:00",
"is_online": true,
"location": "New York",
"avatars": {
"path": "http://127.0.0.1:8000/media/5215999252276/avatar/5215999252276.jpg",
"sizes": {
"sm": {
"width": 32,
"height": 32,
"path": "http://127.0.0.1:8000/media/sm/5215999252276/avatar/5215999252276_32x32.JPEG"
},
"md": {
"width": 64,
"height": 64,
"path": "http://127.0.0.1:8000/media/md/5215999252276/avatar/5215999252276_64x64.JPEG"
},
"lg": {
"width": 300,
"height": 300,
"path": "http://127.0.0.1:8000/media/lg/5215999252276/avatar/5215999252276_300x300.JPEG"
}
}
}
},
"type": 0,
"content": "圣经",
"html_content": "<h1>圣经</h1>",
"img": null,
"imgs": {
},
"crop_img": null,
"crop_imgs": {
},
"status": 100,
"version": 1,
"last_modified": "2020-04-28T08:07:27.335292Z",
"create_time": "2020-04-28T08:07:27.334099Z",
"is_selected": true,
"content_meta": null,
"base_on": null,
"template_config": null,
"media_type": 0,
"img_height": null,
"img_width": null,
"file": null,
"submit_version": 1,
"version_lock": false,
"comments_count": 0,
"comments": [
],
"likes_count": 0
} ]
} ]
}
404 Not found
示例返回数据可参考 API Common – Resource Not Found