Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BorrowBook/Return Book #11

Open
varun10sudhir opened this issue Sep 23, 2023 · 0 comments
Open

BorrowBook/Return Book #11

varun10sudhir opened this issue Sep 23, 2023 · 0 comments

Comments

@varun10sudhir
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant