A Spring Boot-based Library Management System that allows users to manage books, perform searches, and get AI-generated insights.
- CRUD Operations for books (Create, Read, Update, Delete)
- Search books by title and author
- AI Insights for books (via AI Service)
- Spring Boot WebFlux for reactive programming
- Swagger API Documentation enabled
- Validation for book fields
- H2 In-Memory Database for easy testing
- Java 17+
- Maven 3+
- Spring Boot
git clone https://github.com/bharath-potla/Library-Management-Spring-Boot-backend.git
cd library-management
Book Management
Method Endpoint Description
POST /books Add a new book
GET /books Get all books
GET /books/{id} Get book by ID
DELETE /books/{id} Delete book by ID
GET /books/search?title=xxx&author=yyy Search books
AI Insights
Method Endpoint Description
GET /books/{id}/ai-insights Get AI-generated insights for a bookOpen http://localhost:8080/swagger-ui.html
mvn test
Spring Boot 3.3.0 Spring Data JPA Spring WebFlux Lombok H2 Database (In-Memory) Swagger OpenAPI Maven JUnit 5 for Testing