A web market API project, based on e-commerce platform patterns. Backend with API Rest, JWT token access and SQL queries.
- Java 1.8
- Git 2.9.0
- Maven project
- Spring boot 2.3.1
Production
- MySQL 15.1
Deployment
- Heroku
- Heroku MySQL
Test
- H2 database
- JUnit
git clone https://github.com/llaet/ErrorLog-API
cd WebMarket-Backend
mvn run
Spring Boot, Hibernate, REST, Ionic, JWT, S3, MySQL, MongoDB
Access token | POST | /login - body content type: application/json
Refresh access token | POST | /auth/refresh_token - authorization: Bearer
New User password | POST | /auth/forgot - body content type: application/json
Post new order | POST | /pedidos - body content type: application/json
Post new customer | POST | /clientes - body content type: application/json
Post new category | POST | /categorias - body content type: application/json
Update a customer | PUT | /clientes - body content type: application/json | path variable: Integer ID
Update a category | PUT | /categorias - body content type: application/json | path variable: Integer ID
Delete customer by ID | DELETE| /clientes/{id} - path variable: Integer ID
Delete category by ID | DELETE| /categorias/{id} - path variable: Integer ID
Get product by ID | GET | /produtos/{id} - path variable: Integer ID
Get customer by ID | GET | /clientes/{id} - path variable: Integer ID
Get order by ID | GET | /pedidos/{id} - path variable: Integer ID
Get category by ID | GET | /categorias/{id} - path variable: Integer ID
Get all products | GET | /produtos - query param's: nome, categorias, page, linesPerPage, orderBy, direction
Get all customers pageable | GET | /clientes/paginar - query param's: page, linesPerPage, orderBy, direction
Get all categories pageable | GET | /categorias/paginar - query param's: page, linesPerPage, orderBy, direction
Get all customers | GET | /clientes
Get all categories | GET | /categorias