This is an API Rest for a library developed with Spring Boot. The application allows to manage books, members, and loans.
- Register members.
- Manage members.
- Add books to catalog.
- Manage books from catalog.
- Loan books to members.
- Return borrowed books.
- Check loan history of each member.
- Book: id, title, authors, isbn, description, genres.
- Member: id, fullName, email, password.
- Loan: id, member, book, borrwedDate, returnDate.
Clone this project
git clone https://github.com/androsrivas/API-library.git
Config application.properties
file:
spring.datasource.url=jdbc:mysql://localhost:3306/api_library
spring.datasource.username=root
spring.datasource.password=your_password
spring.jpa.hibernate.ddl-auto=update
Compile and execute application:
mvn spring-boot:run
Application will be available in:
http://localhost:8080
GET /api/v1/books
GET /api/v1/books/{id}
POST /api/v1/books
PUT /api/v1/books/{id}
DELETE /api/v1/books/{id}
GET /api/v1/members
GET /api/v1/members/{id}
PUT /api/v1/members/{id}
DELETE /api/v1/members/{id}