You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user has to enter the name of the book in the request body
If the book is available to be borrowed( book_available = True), then update foreign key of the book and return the appropriate success message
If the book is not available however book . userborrowed_id = user_id of current logged in user then return the appropriate json message for returning a book and update book_available and user_borrowed_id of the particular book
If the book is not available to be borrowed ( it is borrowed by another user) , then return the appropriate json message with status code
The text was updated successfully, but these errors were encountered:
Protected Route
The user has to enter the name of the book in the request body
If the book is available to be borrowed( book_available = True), then update foreign key of the book and return the appropriate success message
If the book is not available however book . userborrowed_id = user_id of current logged in user then return the appropriate json message for returning a book and update book_available and user_borrowed_id of the particular book
If the book is not available to be borrowed ( it is borrowed by another user) , then return the appropriate json message with status code
The text was updated successfully, but these errors were encountered: