Updates API-Items.md
Auto commit by GitBook Editor
parent
876f8aebb3
commit
c17016874b
|
@ -157,7 +157,7 @@ Expects a JSON author object \(see inserting an author\).
|
|||
#### Response
|
||||
|
||||
**200** The author was successfully updated.
|
||||
**400** `ID` is empty or no author with this `ID` exists. Returns a more specific message.
|
||||
**400** `ID` is empty, invalid or no author with this `ID` exists. Returns a more specific message.
|
||||
**500** An error occured while updating.
|
||||
|
||||
#### Example
|
||||
|
|
|
@ -213,7 +213,7 @@ Deletes a book by its `ID`.
|
|||
#### Response
|
||||
|
||||
**200** The book was successfully deleted.
|
||||
**400** `ID` is invalid.
|
||||
**400** `ID` is invalid, empty or no book with this `ID` exists.
|
||||
**404** No book with this `ID` exists.
|
||||
**500** A server error occured.
|
||||
|
||||
|
@ -253,7 +253,7 @@ Expects a JSON book object \(see inserting a book\).
|
|||
#### Response
|
||||
|
||||
**200** The book was successfully deleted.
|
||||
**400** Book payload is empty or not valid.
|
||||
**400** Book payload is empty or not valid, `ID` is empty, invalid or no book with this `ID` exists. Returns a more specific message.
|
||||
**404** No book with this `ID` exists.
|
||||
**500** A server error occured.
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ Deletes a item by its `ID`.
|
|||
#### Response
|
||||
|
||||
**200** The item was successfully deleted.
|
||||
**400** `ID` is invalid.
|
||||
**400** `ID` is invalid, empty or no item with this `ID` exists.
|
||||
**404** No book with this `ID` exists.
|
||||
**500** An error occured while deleting.
|
||||
|
||||
|
@ -172,7 +172,7 @@ Expects a JSON item object \(see inserting an item\).
|
|||
|
||||
**200** The item was successfully updated.
|
||||
**400** Publisher payload is empty or not valid.
|
||||
**404** No publisher with this `ID` exists.
|
||||
**404** No publisher with this `ID` exists
|
||||
**500** An error occured while updating.
|
||||
|
||||
#### Example
|
||||
|
|
Loading…
Reference in New Issue