A simple Spring Boot backend application that lets users manage books using CRUD operations.
This is a backend project built using Spring Boot.
It allows users to manage books by performing Create, Read, Update, and Delete (CRUD) operations via REST APIs.
- Add a new book
- Get all books
- Get book by ID
- Update book details
- Delete a book
- Java
- Spring Boot
- Spring Data JPA
- H2 Database (in‑memory)
- Postman (for testing the APIs)
| Action | Method | Endpoint |
|---|---|---|
| Add Book | POST |
/books |
| Get All Books | GET |
/books |
| Get Book by ID | GET |
/books/{id} |
| Update Book | PUT |
/books/{id} |
| Delete Book | DELETE |
/books/{id} |
- Clone the project
git clone https://github.com/AminaHasanaath/library-management-api.git
- Open the project in IntelliJ IDEA
- Run the main Spring Boot class (
@SpringBootApplication) - Use Postman or any API client to test the endpoints
- Backend flow:
Controller → Service → Repository → Database - Building RESTful APIs using Spring Boot and Spring Data JPA
- Common annotations like
@RestController,@Entity,@Repository - How JSON ↔ Java object mapping works via Jackson
Amina Hasanaath
🌱 Aspiring AI Backend Engineer building scalable systems with Java and Spring Boot