This is a simple product registration/inquiry API example created with Spring Boot. You can check the functionality in your browser on a static HTML screen.
| tier | file | Role |
|---|---|---|
| Domain | Product.java |
Product domain model |
| Repository | ProductRepository.java |
Memory-based product storage |
| Service | ProductService.java |
business logic |
| Controller | ProductController.java |
HTTP API |
| View | index.html |
Product registration/inquiry UI |
POST /products: Product registrationGET /products/{id}: Product details inquiry
cd demo
./gradlew bootRun