The OpenAPI annotation in Groovy Closure style.
| Type Params | Return Type | Name and description |
|---|---|---|
null |
java.lang.Class |
openAPIDefinition()To populate OpenAPI Object fields info, tags, servers, security and externalDocs. |
null |
java.lang.Class |
operation()open api document closure of action. |
null |
java.lang.Class |
securityScheme()document closure for security. |
null |
java.lang.Class |
tag()The annotation may be applied at class or method level, or in io.swagger.v3.oas.annotations.Operation#tags() to define tags for the single operation (when applied at method level) or for all operations of a class (when applied at class level). |
null |
java.lang.String |
value()place-holder for any place that need a string content. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
To populate OpenAPI Object fields info, tags, servers, security and externalDocs.
open api document closure of action.
document closure for security.
The annotation may be applied at class or method level, or in io.swagger.v3.oas.annotations.Operation#tags() to define tags for the single operation (when applied at method level) or for all operations of a class (when applied at class level).
It can also be used in io.swagger.v3.oas.annotations.OpenAPIDefinition#tags() to define spec level tags.
When applied at method or class level, if only a name is provided, the tag will be added to operation only; if additional fields are also defined, like description or externalDocs, the Tag will also be added to openAPI.tags field
reference: Tag (OpenAPI specification)place-holder for any place that need a string content. Used in Command object field description annotation.