@CompileStatic class OperationResponses extends java.lang.Object
The responses an operation is described with: those a RestfulController action answers with, or success, and a miss for an operation addressing a resource.
| Constructor and description |
|---|
OperationResponses(ComponentSchemas schemas, ValidationErrorsContent validationErrors) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static io.swagger.v3.oas.models.responses.ApiResponses |
plain(boolean addressesResource)The responses of an action nothing more is known of: success, and a miss where it addresses a resource. |
|
io.swagger.v3.oas.models.responses.ApiResponses |
restful(GrailsControllerClass controller, java.lang.Class<?> resourceType, java.lang.String actionName, boolean takesId, java.util.Map<java.lang.String, java.lang.Boolean> mediaTypes, boolean locates)The responses a RestfulController action gives: save answers CREATED, delete answers NO_CONTENT with no body, an action addressed by an identifier can miss, and an action that validates what it binds can answer with the validation errors. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
The responses of an action nothing more is known of: success, and a miss where it addresses a resource.
The responses a RestfulController action gives: save answers CREATED, delete answers NO_CONTENT with no body, an action addressed by an identifier can miss, and an action that validates what it binds can answer with the validation errors.
locates - whether the action answers with where the resource it created or updated
is, as RestfulController's own save and update do