Skip to content

toltarisa/order-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ordering API Implementation

Summary

Simple Ordering Backend API application with JWT Security

API's
  • 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
Tech Stack
  • Java 11
  • Spring Boot
  • Spring Data JPA
  • Spring Security
  • REST-ful API
  • MySQL
  • Docker
  • Docker compose
  • Swagger
  • Lombok
  • JJWT
  • Spring Boot Validation API
Prerequisites
  • Maven
  • Docker
To Run Tests
mvn test
Run & Build
$ 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
Swagger UI
http://localhost:8082/swagger-ui.html#/

About

Pizza Ordering API Implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published