The Tool Rental App is a point-of-sale tool for a store, like Home Depot, that rents big tools. The below functions have been implemented:
- Customers rent a tool for a specified number of days.
- When a customer checks out a tool, a Rental Agreement is produced.
- The store charges a daily rental fee, whose amount is different for each tool type.
- Some tools are free of charge on weekends or holidays.
- Clerks may give customers a discount that is applied to the total daily charges to reduce the final charge.
The documentation and design for this service is available here
This server was generated by the swagger-codegen project.
By using the OpenAPI-Spec, you can easily generate a server stub.
This is an example of building a swagger-enabled server in Java using the SpringBoot framework.
The underlying library integrating swagger to SpringBoot is springdoc-openapi
The service is built using
- JDK 15
- Spring Boot 3.0.1
- Open API 3.0
Start your server as an simple java application using the below command
mvn spring-boot:run
You can view the Openapi UI documentation in swagger-ui by pointing to
http://localhost:3000/
Change default port value in application.properties]()
The Postman collection to test this service is available here