Ayush0612005/library-management-system-springboot ? reverse-engineered prompt

Reverse engineered prompt

Build me a backend library management system with Spring Boot and MySQL that lets an admin manage books and students, issue and return books, and always know which books are available. I want secure login with JWT so only signed in users can access protected APIs, plus a simple auth endpoint for logging in. Please include validation for bad input, clear error responses, and Swagger docs so I can test everything easily from the browser.

Make it a clean REST API with the usual create, read, update, and delete actions for books and students, and add the basic flows for borrowing and returning books. Use Spring Security for protection, Spring Data JPA for database access, and set it up so it runs against a MySQL database called library_management. If you need to check current docs for anything, feel free to look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab