Simple Ordering Backend API application with JWT Security
- Authentication API
- Order API
Method | Path | Description |
---|---|---|
POST | /api/register | Registers new user |
POST | /api/auth | Logs a new user in and returns Access Token |
POST | /api/orders | Creates single or multiple orders |
GET | /api/orders | List all orders |
GET | /api/orders/user?userId | List all orders of User |
PATCH | /api/orders/:orderId | Cancel an order |
DELETE | /api/orders/:orderId | Deletes an order |
- Java 11
- Spring Boot
- Spring Data JPA
- Spring Security
- REST-ful API
- MySQL
- Docker
- Docker compose
- Swagger
- Lombok
- JJWT
- Spring Boot Validation API
- Maven
- Docker
mvn test
$ cd order-api
$ docker-compose up -d
Note: Rename .env.dev file to .env and replace existing fields
with your informations before executing docker-compose
Application Port: 8082
MySQL DB Port: 3307
http://localhost:8082/swagger-ui.html#/