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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entityName": "<entityName>"
},
"name": "generate_controller"
}
}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 |