Annotation Interface CallbackOperation
Describes a single API callback operation.
- See Also:
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionA verbose description of the callback operation behavior.The list of optional extensions.Additional external documentation for this callback operation.The HTTP method for this callback operation.An array of parameters applicable for this callback operation, which will be added to any automatically detected parameters in the method itself.The request body applicable for this callback operation.This is a REQUIRED property of an callback operation instance.A declaration of which security mechanisms can be used for this callback operation.Provides a brief description of what this callback operation does.
-
Element Details
-
method
String methodThe HTTP method for this callback operation.- Returns:
- the HTTP method of this callback operation
- Default:
- ""
-
summary
String summaryProvides a brief description of what this callback operation does.- Returns:
- a summary of this callback operation
- Default:
- ""
-
description
String descriptionA verbose description of the callback operation behavior. CommonMark syntax MAY be used for rich text representation.- Returns:
- a description of this callback operation
- Default:
- ""
-
externalDocs
ExternalDocumentation externalDocsAdditional external documentation for this callback operation.- Returns:
- external documentation associated with this callback operation instance
- Default:
- @org.eclipse.microprofile.openapi.annotations.ExternalDocumentation
-
parameters
Parameter[] parametersAn array of parameters applicable for this callback operation, which will be added to any automatically detected parameters in the method itself.The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location.
- Returns:
- the list of parameters for this callback operation
- Default:
- {}
-
requestBody
RequestBody requestBodyThe request body applicable for this callback operation.- Returns:
- the request body of this callback operation
- Default:
- @org.eclipse.microprofile.openapi.annotations.parameters.RequestBody
-
responses
APIResponse[] responsesThis is a REQUIRED property of an callback operation instance.The list of possible responses as they are returned from executing this callback operation.
- Returns:
- the list of responses for this callback operation
- Default:
- {}
-
security
SecurityRequirement[] securityA declaration of which security mechanisms can be used for this callback operation. Only one of the security requirement objects need to be satisfied to authorize a request.This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used.
- Returns:
- the list of security mechanisms for this callback operation
- Default:
- {}
-
extensions
Extension[] extensionsThe list of optional extensions.- Returns:
- an optional array of extensions
- Default:
- {}
-