Interface OpenApiProvider
- All Known Implementing Classes:
BasicOpenApiProvider,OpenApiProvider.Void
public interface OpenApiProvider
Interface for retrieving an
OpenApi 3.1 document from a REST resource.
Sibling of SwaggerProvider for OpenAPI 3.1 emission. Both
providers coexist; the @Rest(openApiProvider=...) attribute selects the implementation.
See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilder class forOpenApiProviderinstances.static classRepresents no OpenApiProvider. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenApiProvider.BuilderStatic creator.getOpenApi(RestContext context, Locale locale) Returns the OpenAPI 3.1 document associated with the specifiedRest-annotated class.
-
Method Details
-
create
Static creator.- Parameters:
beanStore- The bean store to use for creating beans.- Returns:
- A new builder for this object.
-
getOpenApi
Returns the OpenAPI 3.1 document associated with the specifiedRest-annotated class.
-