Spring Boot REST API
A layered Spring Boot REST API used as the reference shape for Spring Boot Bootstrap.
- Expose a small resource API (for example, customers)
- Keep controller, service, and persistence concerns separated
- Validate input and return consistent error responses
- Enable Actuator health
- Include automated tests
Related skill
Section titled “Related skill”| Skill | Status |
|---|---|
| Spring Boot Bootstrap | Available |
Expected structure
Section titled “Expected structure”src/├── main/│ ├── java/│ │ └── com/example/app/│ │ ├── Application.java│ │ └── customer/│ │ ├── CustomerController.java│ │ ├── CustomerService.java│ │ ├── CustomerRepository.java│ │ └── CustomerResponse.java│ └── resources/│ └── application.yml└── test/ └── java/Suggested verification
Section titled “Suggested verification”./mvnw test./mvnw spring-boot:runConfirm health via Actuator and exercise the resource endpoints with HTTP requests or tests.