public class MicroProfileOpenApiRegistration
extends java.lang.Object
TomEEMicroProfileListener
after the application is deployed.
It will first try to load static openapi files in format JSON, YAML and YML. If not found, it will try to generate the model on the fly for the endpoints according to what the spec requires.
Constructor and Description |
---|
MicroProfileOpenApiRegistration() |
Modifier and Type | Method and Description |
---|---|
static OpenAPI |
getOpenApi(ServletContext servletContext) |
void |
onStartup(java.util.Set<java.lang.Class<?>> c,
ServletContext servletContext) |
static void |
registerOpenApiServlet(ServletContext servletContext,
IndexView indexView) |
static void |
setOpenApi(ServletContext servletContext,
OpenAPI openAPI) |
public void onStartup(java.util.Set<java.lang.Class<?>> c, ServletContext servletContext) throws ServletException
ServletException
public static void registerOpenApiServlet(ServletContext servletContext, IndexView indexView)
public static void setOpenApi(ServletContext servletContext, OpenAPI openAPI)
public static OpenAPI getOpenApi(ServletContext servletContext)