Package com.ibm.wsspi.openapi31
Interface OASProvider
-
public interface OASProviderThis interface provides ability to provide OpenAPI Specification documents for a RESTful web services.RESTful web services that want to push their OpenAPI Specification documents into the OpenAPI feature, have to implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringgetContextRoot()default java.lang.StringgetOpenAPIDocument()OpenAPI Specification document can be exposed by implementing this method.default org.eclipse.microprofile.openapi.models.OpenAPIgetOpenAPIModel()OpenAPI Specification model can be exposed by implementing this method.booleanisPublic()Specifies whether the provided documents should be included in the public aggregated OpenAPI feature document or not.
-
-
-
Method Detail
-
getOpenAPIModel
default org.eclipse.microprofile.openapi.models.OpenAPI getOpenAPIModel()
OpenAPI Specification model can be exposed by implementing this method.- Returns:
OpenAPImodel constructed through code.
-
getOpenAPIDocument
default java.lang.String getOpenAPIDocument()
OpenAPI Specification document can be exposed by implementing this method.- Returns:
- String containing OpenAPI document.
-
getContextRoot
java.lang.String getContextRoot()
- Returns:
- Context root of the document provider.
-
isPublic
boolean isPublic()
Specifies whether the provided documents should be included in the public aggregated OpenAPI feature document or not.- Returns:
- Specifies if documents should be public or private.
-
-