- online-book-api - to connect database for providing rest service.
- postgresql-db - to store client information.
- JDK-11 - Java™ Platform, Standard Edition Development Kit.
- Spring Boot - Framework to ease the bootstrapping and development of new Spring Applications.
- Maven - Dependency Management.
- PostgreSql - Open-Source Relational Database Management System.
- Spring Security with Bearer Token - Provide secure endpoints.
- JUnit - The goal is to create an up-to-date foundation for developer-side testing on the JVM. This includes focusing on Java, as well as enabling many different styles of testing.
- Lombok - Never write another getter or equals method again, with one annotation your class has a fully featured builder, Automate your logging variables, and much more.
- Swagger - Open-Source software framework backed by a large ecosystem of tools that helps developers design, build, document, and consume RESTful Web services.
- Postman - Postman is a collaboration platform for API development. Postman's features simplify each step of building an API and streamline collaboration so you can create better APIs—faster
- Git - Free and Open-Source distributed version control system.
- Docker - A set of platform as a service products that use OS-level virtualization to deliver software in packages called containers.
- use "docker-compose up -d" to run the dockerized spring boot projects.
- Swagger -
http://localhost:8888/swagger-ui.html
- Documentation & Testing - Postman Collection -
https://www.postman.com/collections/c62903499d356e33f40b
- You can find the postman collection here and import the link your locale postman app.
URL | Method | Remarks |
---|---|---|
https://localhost:8888/auth |
POST | Authenticate user |
https://localhost:8888/books |
POST | Create a book with stock option |
https://localhost:8888/book-stocks |
GET | Get all books with stock option |
https://localhost:8888/customers |
POST | Create a customer |
https://localhost:8888/orders?customerId=1 |
GET | Get orders of the customer |
https://localhost:8888/orders |
POST | Create a order |
https://localhost:8888/order-details?orderId=1 |
GET | Get order details |