A simple REST API for managing a book catalog, built with Spring Boot and H2.
No external database setup is required — data is stored in a local H2 file database created automatically on first run.
Your task: see ASSIGNMENT.md for the coding exercise (library checkout/return).
If mvn uses an older JDK, set JAVA_HOME to your JDK 17+ installation before building.
mvn spring-boot:runServer runs on http://localhost:8080 by default.
curl http://localhost:8080/api/books| Method | Path | Description |
|---|---|---|
| GET | / |
Welcome message |
| POST | /api/books |
Create a book |
| GET | /api/books |
List books; optional ?author= filter |
| GET | /api/books/available |
List available books |
| GET | /api/books/{id} |
Get one book |
| PUT | /api/books/{id} |
Update a book |
| DELETE | /api/books/{id} |
Delete a book |
mvn test