mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-23 23:49:37 +00:00
00ae04e0bd
Also aligned books, shelves and chapters to return description content and some relations (where not breaking API) in create/update responses also so that information can be seen direct from that input in a request. API docs and tests not yet updated to match.
78 lines
2.0 KiB
JSON
78 lines
2.0 KiB
JSON
{
|
|
"id": 14,
|
|
"name": "My shelf",
|
|
"slug": "my-shelf",
|
|
"description": "This is my shelf with some books",
|
|
"description_html": "<p>This is my shelf with some books</p>",
|
|
"created_by": {
|
|
"id": 1,
|
|
"name": "Admin",
|
|
"slug": "admin"
|
|
},
|
|
"updated_by": {
|
|
"id": 1,
|
|
"name": "Admin",
|
|
"slug": "admin"
|
|
},
|
|
"owned_by": {
|
|
"id": 1,
|
|
"name": "Admin",
|
|
"slug": "admin"
|
|
},
|
|
"created_at": "2020-04-10T13:24:09.000000Z",
|
|
"updated_at": "2020-04-10T13:31:04.000000Z",
|
|
"tags": [
|
|
{
|
|
"name": "Category",
|
|
"value": "Guide",
|
|
"order": 0
|
|
}
|
|
],
|
|
"cover": {
|
|
"id": 501,
|
|
"name": "anafrancisconi_Sp04AfFCPNM.jpg",
|
|
"url": "http://bookstack.local/uploads/images/cover_book/2020-04/anafrancisconi_Sp04AfFCPNM.jpg",
|
|
"created_at": "2020-04-10T13:31:04.000000Z",
|
|
"updated_at": "2020-04-10T13:31:04.000000Z",
|
|
"created_by": 1,
|
|
"updated_by": 1,
|
|
"path": "/uploads/images/cover_book/2020-04/anafrancisconi_Sp04AfFCPNM.jpg",
|
|
"type": "cover_book",
|
|
"uploaded_to": 14
|
|
},
|
|
"books": [
|
|
{
|
|
"id": 5,
|
|
"name": "Sint explicabo alias sunt.",
|
|
"slug": "jbsQrzuaXe",
|
|
"description": "Hic forum est.",
|
|
"created_at": "2020-04-10T13:31:04.000000Z",
|
|
"updated_at": "2020-04-10T13:31:04.000000Z",
|
|
"created_by": 1,
|
|
"updated_by": 1,
|
|
"owned_by": 1
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "BookStack User Guide",
|
|
"slug": "bookstack-user-guide",
|
|
"description": "The Bookstack User Guide Book.",
|
|
"created_at": "2020-04-10T15:30:32.000000Z",
|
|
"updated_at": "2020-04-13T09:01:04.000000Z",
|
|
"created_by": 1,
|
|
"updated_by": 2,
|
|
"owned_by": 1
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "Molestiae doloribus sint velit suscipit dolorem.",
|
|
"slug": "H99QxALaoG",
|
|
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
"created_at": "2020-04-10T13:31:04.000000Z",
|
|
"updated_at": "2020-04-10T13:31:04.000000Z",
|
|
"created_by": 1,
|
|
"updated_by": 1,
|
|
"owned_by": 1
|
|
}
|
|
]
|
|
} |