This annotation is only used for operations defined under a PathItem. For operations provided by the API
itself, it's more common to use the Operation annotation applied to a Jakarta REST resource method instead.
| Modifier and Type | Method and Description |
|---|---|
| public Callback[] | Returns: the list of callbacks for this operationA list of possible out-of-band callbacks related to this operation. |
| public boolean | Returns: whether or not this operation is deprecatedAllows an operation to be marked as deprecated Consumers SHOULD refrain from usage of a deprecated operation. |
| public String | Returns: a description of this operationA verbose description of the operation behavior. |
| public Extension[] | Returns: array of extensionsList of extensions to be added to the |
| public ExternalDocumentation | Returns: external documentation associated with this operation instanceAdditional external documentation for this operation. |
| public String | |
| public String | |
| public Parameter[] | Returns: the list of parameters for this operationAn array of parameters applicable for this operation. |
| public RequestBody | |
| public APIResponse[] | Returns: the list of responses for this operationThe list of possible responses that can be returned when executing this operation. |
| public SecurityRequirement[] | Returns: the list of security mechanisms for this operationA declaration of which security mechanisms can be used for this callback operation. |
| public SecurityRequirementsSet[] | Returns: the list of security mechanisms for this operationA declaration of which security mechanisms can be used for this callback operation. |
| public Server[] | Returns: the list of serversA list of servers to be used for this operation, overriding those defined for the parent path item or for the whole API. |
| public String | Returns: a summary of this operationProvides a brief description of what this operation does. |
| public Tag[] |
| callbacks | back to summary |
|---|---|
| public Callback[] callbacks() A list of possible out-of-band callbacks related to this operation. Each entry represents a set of requests that may be initiated by the API provided and an expression, evaluated at runtime, that identifies the URL used to make those requests.
| |
| deprecated | back to summary |
|---|---|
| public boolean deprecated() Allows an operation to be marked as deprecated Consumers SHOULD refrain from usage of a deprecated operation.
| |
| description | back to summary |
|---|---|
| public String description() A verbose description of the operation behavior. CommonMark syntax MAY be used for rich text representation.
| |
| extensions | back to summary |
|---|---|
| public Extension[] extensions() List of extensions to be added to the
| |
| externalDocs | back to summary |
|---|---|
| public ExternalDocumentation externalDocs() Additional external documentation for this operation.
| |
| method | back to summary |
|---|---|
| public String method() The HTTP method for this operation.
| |
| operationId | back to summary |
|---|---|
| public String operationId() Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions.
| |
| parameters | back to summary |
|---|---|
| public Parameter[] parameters() An array of parameters applicable for this operation. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location.
| |
| requestBody | back to summary |
|---|---|
| public RequestBody requestBody() The request body for this operation.
| |
| responses | back to summary |
|---|---|
| public APIResponse[] responses() The list of possible responses that can be returned when executing this operation.
| |
| security | back to summary |
|---|---|
| public SecurityRequirement[] security() A 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.
Adding a This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used.
| |
| securitySets | back to summary |
|---|---|
| public SecurityRequirementsSet[] securitySets() A declaration of which security mechanisms can be used for this callback operation. All of the security requirements within any one of the sets needs needs 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. Including an empty set within this list indicates that the other requirements are optional.
| |
| servers | back to summary |
|---|---|
| public Server[] servers() A list of servers to be used for this operation, overriding those defined for the parent path item or for the whole API.
| |
| summary | back to summary |
|---|---|
| public String summary() Provides a brief description of what this operation does.
| |
| tags | back to summary |
|---|---|
| public Tag[] tags() The tags which apply to this operation.
| |