Package dev.getelements.elements.rest
Class Oas3DocumentationResource
java.lang.Object
io.swagger.v3.jaxrs2.integration.resources.BaseOpenApiResource
dev.getelements.elements.rest.Oas3DocumentationResource
@Path("openapi.{type:json|yaml}")
public class Oas3DocumentationResource
extends io.swagger.v3.jaxrs2.integration.resources.BaseOpenApiResource
-
Field Summary
Fields inherited from class io.swagger.v3.jaxrs2.integration.resources.BaseOpenApiResource
configLocation, openApiConfiguration, resourcePackages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.swagger.v3.oas.models.OpenAPIgetOpenApiJson(String type, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.HttpHeaders headers, jakarta.ws.rs.core.Application application, jakarta.servlet.ServletConfig servletConfig) io.swagger.v3.oas.models.OpenAPIgetOpenApiYaml(String type, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.HttpHeaders headers, jakarta.ws.rs.core.Application application, jakarta.servlet.ServletConfig servletConfig) voidsetApiOutsideUrl(URI apiOutsideUrl) voidsetVersionService(VersionService versionService) Methods inherited from class io.swagger.v3.jaxrs2.integration.resources.BaseOpenApiResource
configLocation, getConfigLocation, getContextId, getOpenApi, getOpenApiConfiguration, getResourcePackages, openApiConfiguration, resourcePackages, setConfigLocation, setOpenApiConfiguration, setResourcePackages
-
Constructor Details
-
Oas3DocumentationResource
public Oas3DocumentationResource()
-
-
Method Details
-
getOpenApiJson
@GET @Produces("application/json") public io.swagger.v3.oas.models.OpenAPI getOpenApiJson(@PathParam("type") String type, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Context jakarta.ws.rs.core.HttpHeaders headers, @Context jakarta.ws.rs.core.Application application, @Context jakarta.servlet.ServletConfig servletConfig) throws io.swagger.v3.oas.integration.OpenApiConfigurationException - Throws:
io.swagger.v3.oas.integration.OpenApiConfigurationException
-
getOpenApiYaml
@GET @Produces("application/yaml") public io.swagger.v3.oas.models.OpenAPI getOpenApiYaml(@PathParam("type") String type, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Context jakarta.ws.rs.core.HttpHeaders headers, @Context jakarta.ws.rs.core.Application application, @Context jakarta.servlet.ServletConfig servletConfig) throws io.swagger.v3.oas.integration.OpenApiConfigurationException - Throws:
io.swagger.v3.oas.integration.OpenApiConfigurationException
-
getApiOutsideUrl
-
setApiOutsideUrl
-
getVersionService
-
setVersionService
-