Package io.micronaut.openapi.annotation
Annotation Interface OpenAPIInclude
@Repeatable(OpenAPIIncludes.class)
@Retention(SOURCE)
@Documented
@Target({TYPE,ANNOTATION_TYPE})
public @interface OpenAPIInclude
The annotation can be used to include additional io.micronaut.http.annotation.Controller or
io.micronaut.management.endpoint.annotation.Endpoint classes to be processed for OpenAPI definition.
This is useful in cases where you cannot alter the source code and wish to generate Open API for already compiled classes.
- Author:
- Denis Stepanov
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<?>[]
String[]
String[]
String[]
io.swagger.v3.oas.annotations.security.SecurityRequirement[]
A declaration of which security mechanisms can be used across the API.io.swagger.v3.oas.annotations.tags.Tag[]
A list of tags used by the specification with additional metadata.Class<?>[]
-
Element Details
-
value
Class<?>[] value- Returns:
- The classes to generate Open API for.
- Default:
- {}
-
classes
- Returns:
- The classes to generate Open API for.
- Default:
- {}
-
classNames
- Returns:
- The classes to generate Open API for.
- Default:
- {}
-
groups
String[] groups- Returns:
- Array of groups to which this controller should be included.
- Since:
- 4.10.0
- Default:
- {}
-
groupsExcluded
String[] groupsExcluded- Returns:
- Array of groups to which this controller should not be included.
- Since:
- 4.10.0
- Default:
- {}
-
uri
String uri- Returns:
- Custom URI for controller
- Since:
- 4.4.0
- Default:
- ""
-
tags
io.swagger.v3.oas.annotations.tags.Tag[] tagsA list of tags used by the specification with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools.- Returns:
- the tags used by the specification with any additional metadata
- Default:
- {}
-
security
io.swagger.v3.oas.annotations.security.SecurityRequirement[] securityA declaration of which security mechanisms can be used across the API.- Returns:
- the array of servers used for this API
- Default:
- {}
-