mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
API: Added cover to book/shelf list endpoints
Aligns with what we provide in the UI. Added/updated tests to cover, and updated API examples. For 5180.
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
"updated_at": "2019-12-11T20:57:31.000000Z",
|
||||
"created_by": 1,
|
||||
"updated_by": 1,
|
||||
"owned_by": 1
|
||||
"owned_by": 1,
|
||||
"cover": null
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
@@ -20,7 +21,12 @@
|
||||
"updated_at": "2019-12-11T20:57:23.000000Z",
|
||||
"created_by": 4,
|
||||
"updated_by": 3,
|
||||
"owned_by": 3
|
||||
"owned_by": 3,
|
||||
"cover": {
|
||||
"id": 11,
|
||||
"name": "cat_banner.jpg",
|
||||
"url": "https://example.com/uploads/images/cover_book/2021-10/cat-banner.jpg"
|
||||
}
|
||||
}
|
||||
],
|
||||
"total": 14
|
||||
|
@@ -9,7 +9,12 @@
|
||||
"updated_at": "2020-04-10T13:00:45.000000Z",
|
||||
"created_by": 4,
|
||||
"updated_by": 1,
|
||||
"owned_by": 1
|
||||
"owned_by": 1,
|
||||
"cover": {
|
||||
"id": 4,
|
||||
"name": "shelf.jpg",
|
||||
"url": "https://example.com/uploads/images/cover_bookshelf/2024-12/shelf.jpg"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
@@ -20,7 +25,8 @@
|
||||
"updated_at": "2020-04-10T13:00:58.000000Z",
|
||||
"created_by": 4,
|
||||
"updated_by": 1,
|
||||
"owned_by": 1
|
||||
"owned_by": 1,
|
||||
"cover": null
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
@@ -31,7 +37,8 @@
|
||||
"updated_at": "2020-04-10T13:00:53.000000Z",
|
||||
"created_by": 4,
|
||||
"updated_by": 1,
|
||||
"owned_by": 4
|
||||
"owned_by": 4,
|
||||
"cover": null
|
||||
}
|
||||
],
|
||||
"total": 3
|
||||
|
Reference in New Issue
Block a user