generate_controller
Generate Spring Boot REST controller code with CRUD endpoints, validation, pagination, and exception handling by specifying an entity name.
Instructions
Generate a Spring Boot REST Controller with CRUD endpoints and proper exception handling
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basePath | No | API base path | /api |
| endpoints | No | CRUD endpoints to generate | |
| entityName | Yes | Entity name in PascalCase, e.g. 'Product' | |
| packageName | No | Base package name | com.example.demo |
| withPagination | No | Use pagination for list endpoints | |
| withValidation | No | Include @Valid annotations |