Skip to content

Latest commit

 

History

History
115 lines (75 loc) · 3.19 KB

README.md

File metadata and controls

115 lines (75 loc) · 3.19 KB

Spring Library

Library REST API developed with Java Spring boot and JWT.

Java

Spring

Spring Boot

Spring Security

JSON

API Reference

Get a book

  GET /books/${id}
Parameter Type Description
Id int Required. Search a specific book with an Id.

Get all books

  GET /books/all
Parameter Type Description
No Parameter Required. Search all books

Get books by author

  GET /books/author/nameOrSurname
Parameter Type Description
Name or surname String Required. Search a book with the author's name or surname (not working right now)

Delete a book

  Delete /books/delete
Parameter Type Description
Id int Required. Deletes a book with the specified Id.

Save a book

  Post /books/save
Parameter Type Description
Book book Required. Saves a book with the information required.

Get all borrows

  GET /borrows/all
Parameter Type Description
No parameter Required. Gets all the borrows registered.

Gets a specific borrow

  Get /borrows/book/{bookId}
Parameter Type Description
Id int Required. Search a specifics borrow with a book ID

Gets a specific borrow

  Get /borrows/student/{studentId}
Parameter Type Description
Id int Required. Search a specifics borrow with a student ID

Saves a borrow

  Post /borrows/save
Parameter Type Description
Borrow borrow Required. Saves a borrow with the information required.

Authors

🚀 About Me

I'm a student looking for opportunities as a backend developer.