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

Allow users to place holds on an unavailable book #24

Open
albendz opened this issue Dec 27, 2020 · 0 comments
Open

Allow users to place holds on an unavailable book #24

albendz opened this issue Dec 27, 2020 · 0 comments

Comments

@albendz
Copy link
Owner

albendz commented Dec 27, 2020

Summary

Allow users to place holds on a book

Details

A user can create a hold on a book when they want to borrow a book that does not have available copies. This will create a hold entity in the holds table.

This operations is through a REST API: /book/{isbn}/hold with member and copy (optionally) in payload as with #18

This will place an asynchronous message on a kafka topic to place a hold. The kafka consumer will read the hold request and create the hold entity in the database.

If a member, book, or copy does not exist, return 404.

A user can only have 20 active holds. If a user has 20 hold already, return a 400.

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

No branches or pull requests

1 participant