mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Reviewed and added testing for BookShelf API implementation
- Tweaked how books are passed on update to prevent unassignment if parameter is not provided. - Added books to validation so they show in docs. - Added request/response examples. - Added tests to cover. - Added child book info to shelf info. Review of #1908
This commit is contained in:
5
dev/api/requests/shelves-create.json
Normal file
5
dev/api/requests/shelves-create.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "My shelf",
|
||||
"description": "This is my shelf with some books",
|
||||
"books": [5,1,3]
|
||||
}
|
5
dev/api/requests/shelves-update.json
Normal file
5
dev/api/requests/shelves-update.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "My updated shelf",
|
||||
"description": "This is my update shelf with some books",
|
||||
"books": [5,1,3]
|
||||
}
|
Reference in New Issue
Block a user