Package io.micronaut.openapi.annotation
Annotation Interface OpenAPIGroup
@Repeatable(OpenAPIGroups.class)
@Retention(SOURCE)
@Documented
@Target({PACKAGE,TYPE,METHOD})
public @interface OpenAPIGroup
With this annotation, you can specify one or more groups that this endpoint will be included in,
as well as specify groups from which this endpoint should be excluded. Also, you can set
specific endpoint extensions for each group
- Since:
- 4.10.0
-
Optional Element Summary
-
Element Details
-
value
- Returns:
- The names of the OpenAPI groups.
- Default:
- {}
-
names
- Returns:
- The names of the OpenAPI groups.
- Default:
- {}
-
exclude
String[] exclude- Returns:
- The names of the OpenAPI groups to exclude endpoints from.
- Default:
- {}
-
extensions
io.swagger.v3.oas.annotations.extensions.Extension[] extensionsThe list of optional extensions only for these groups.- Returns:
- an optional array of extensions
- Since:
- 6.7.0
- Default:
- {}
-