Class Oas3DocumentationResource

java.lang.Object
io.swagger.v3.jaxrs2.integration.resources.BaseOpenApiResource
dev.getelements.elements.rest.Oas3DocumentationResource

@Path("") 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    jakarta.ws.rs.core.Response
    getOpenApiJson(jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.HttpHeaders headers, jakarta.ws.rs.core.Application application, jakarta.servlet.ServletConfig servletConfig)
     
    jakarta.ws.rs.core.Response
    getOpenApiYaml(jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.HttpHeaders headers, jakarta.ws.rs.core.Application application, jakarta.servlet.ServletConfig servletConfig)
     
     
    void
    setApiOutsideUrl(URI apiOutsideUrl)
     
    void
     

    Methods inherited from class io.swagger.v3.jaxrs2.integration.resources.BaseOpenApiResource

    configLocation, getConfigLocation, getContextId, getOpenApi, getOpenApiConfiguration, getResourcePackages, openApiConfiguration, resourcePackages, setConfigLocation, setOpenApiConfiguration, setResourcePackages

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Oas3DocumentationResource

      public Oas3DocumentationResource()
  • Method Details

    • getOpenApiJson

      @GET @Path("openapi.json") @Produces("application/json") public jakarta.ws.rs.core.Response getOpenApiJson(@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 @Path("openapi.yaml") @Produces("application/yaml") public jakarta.ws.rs.core.Response getOpenApiYaml(@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

      public URI getApiOutsideUrl()
    • setApiOutsideUrl

      @Inject public void setApiOutsideUrl(@Named("dev.getelements.elements.api.url") URI apiOutsideUrl)
    • getVersionService

      public VersionService getVersionService()
    • setVersionService

      @Inject public void setVersionService(VersionService versionService)