This server application enables clients to send HTTP requests, such as GET, POST, PUT, and DELETE, and handles them accordingly. The application stores the received data in a PostgreSQL database, allowing efficient organization and storage of information.
With this application, various operations can be performed on the database, including creating new records, updating existing records, deleting records, and retrieving data from the database using HTTP requests.
For the convenience of development and API documentation, Swagger and SpringDoc are utilized.
▶️ Video presentation Auto-Service-App. LINK
- REST API
- SOLID principles
- Presentation layer (controllers)
- Application layer (services)
- Data access layer (repositories)
POST: /masters
- Creation of the "Master" entityPUT: /masters/{id}
- Editing entity "Master" dataGET: /masters/{id}/orders
- Receiving master's ordersGET: /masters/{id}/salary
- Calculation and issuance of wages to the masterPOST: /cars
- Creation of the "Car" entityPUT: /cars/{id}
- Editing entity "Car" dataPOST: /car-owners
- Creation of the entity "Owner of the Machine"PUT: /car-owners/{id}
- Editing the data of the entityGET: /car-owners/{id}/orders
- Get this customer's ordersPOST: /orders
- Creation of the "Order" entityPOST: /orders/{orderId}}/goods/{goodsId}
- Adding "Goods" to the "Order" entityPUT: /orders/{id}
- Editing entity dataPUT: /orders/{id}/{newStatus}
- Editing the status of the "Order"GET: /{Id}/calculatePrice
- Calculation of the cost of the "Order"POST: /maintenances
- Creation of the "Maintenances" entityPUT: /maintenances/{id}
- Editing entity "Maintenances" dataPUT: /maintenances/{id}/{newStatus}
- Editing the "Maintenances" statusPOST: /goods
- Creation of the entity "Goods"PUT: /goods/{id}
- Editing entity "Goods" data
controller
- contains controllers for endpointsdto
- wrapper for model objects to unify the requests and responses in controllersmapper
- converts model objects to DTO objects
repository
- data access layer (repository) that calls CRUD methods in the databasemodel
- contains models for the databaseservice
- contains services that call repositories and the Authentication class
- Java
17
- Apache Maven
3.10.1
- Apache Tomcat
9.0.73
- PostgreSQL
42.5.4
- Spring:
- Boot
3.0.6
- Data Jpa
3.0.6
- Web Mvc
6.0.8
- Boot
- Liquibase-core
4.17.2
- lombok
1.18.26
- Hibernate
6.1.7.Final
- Swagger UI
- SpringDoc
2.1.0
- Checkstyle Plugin
3.1.1
- Clone the repo on GitHub
- Run docker client
- In the terminal, run the command:
docker-compose up
- Use the address
http://localhost:6868/swagger-ui/index.html#/
to access the documentation.
Also, you can use my Postman request collection for testing: LINK
If you have any questions or suggestions, please feel free to contact me via My LinkedIn I am open to new opportunities as a Junior Java Developer.