@io.micronaut.security.annotation.Secured(value: MANAGER) @io.micronaut.http.annotation.Controller(value: /sample) class SampleController extends BaseCrudRestController
Test controller for extension mechanism.
Fields inherited from class | Fields |
---|---|
class BaseController |
lastErrorMessage |
Type | Name and description |
---|---|
private static java.lang.Object |
domainClass |
Constructor and description |
---|
SampleController
() |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getView(java.lang.String methodName) Determines the view to display for the given method. |
|
java.lang.String |
locale() |
|
java.lang.String |
throwsException() |
|
java.lang.String |
throwsInfiniteException() |
Methods inherited from class | Name |
---|---|
class BaseCrudRestController |
restDelete, restGet, restPost, restPut |
class BaseCrudController |
bindEvent, create, createPost, delete, edit, editPost, getDomain, getRootPath, getView, index, list, show |
class BaseController |
buildDeniedResponse, buildErrorResponse, buildOkResponse, error, parseBody |
Determines the view to display for the given method. This can be overridden in your controller class to use a different naming scheme.
This sub-class points to a sample directory.
methodName
- The method that needs the view (e.g. 'index').Groovy Documentation