Package org.forgerock.api.annotations
Annotation Interface Action
Indicates an CREST action method on an annotated POJO. This annotation can be used on
methods in both singleton and collection resource request handlers.
The annotated method's return type must be:
- A
Promise<JsonValue, ? extends ResourceException>
promise.
- A string parameter for the instance identifier.
- A
Context
to be given the context. - A
org.forgerock.json.resource.ActionRequest
to be given the request.
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionDescribe the standard operation details of this action. -
Optional Element Summary
-
Element Details
-
operationDescription
Operation operationDescriptionDescribe the standard operation details of this action.
-
-
-
name
String nameThe name of the action being exposed. If not supplied, the name of the method is assumed to be the name of the action.- Default:
- ""
-
request
Schema requestDescribe the schema of the request payload. Defaults to no content.- Default:
- @org.forgerock.api.annotations.Schema
-
response
Schema responseDescribe the schema of the response payload. Defaults to no content.- Default:
- @org.forgerock.api.annotations.Schema
-