An open API service indexing awesome lists of open source software.

https://github.com/lycan-nt/bookstore-api

A CRUD API for books and categories
https://github.com/lycan-nt/bookstore-api

api heroku java rest-api spring spring-boot web

Last synced: about 2 months ago
JSON representation

A CRUD API for books and categories

Awesome Lists containing this project

README

          

# bookstore-api
A CRUD API for books and categories

## Built with
- Java 8
- Gradle Project
- Jar
- Spring Web
- Spring Data JPA
- Data Base H2

## Instructions
To make use of the features implemented in this API use the

### API resources
- URL Base: https://book-store-aplication.herokuapp.com/
- Resource Categories
- Requisition Type: GET Route: /categorias/ID (Search a category by id)
- Requisition Type: GET Route: /categorias (Search all categorys)
- Requisition Type: POST Route: /categorias (Register a new category: receive a json with the name and description)

{

"nome": ""

"descricao": ""

}


- Requisition Type: PUT Route: /categorias/ID (change a category: receive a json with the name and description)

{

"nome": ""

"descricao": ""

}


- Requisition Type: DELETE Route: /categorias/ID (Delete a category by id)

- Resource Books
- Requisition Type: GET Route: livros/ID (Search a category by id)
- Requisition Type: GET Route: /livros?categoria=ID (Search all boocks for a category)
- Requisition Type: POST Route: /livros?categoria=ID (Register a new boock for a category: receive a json with the title, author name and text)

{

"titulo": "",

"nomeAutor": "",

"Texto": ""

}


- Requisition Type: PUT Route: /livros/ID (change a boock: receive a json with the title, author name and text)

{

"titulo": "",

"nomeAutor": "",

"Texto": ""

}


- Requisition Type: DELETE Route: /livros/ID (Delete a boock by id)

## Author
Felipe D. Santos

## License
MIT