Class MultipleOpenApiResource


  • @RestController
    public class MultipleOpenApiResource
    extends Object
    • Method Detail

      • openapiJson

        @GetMapping(value="${springdoc.api-docs.path:#{T(org.springdoc.core.Constants).DEFAULT_API_DOCS_URL}}/{group}",
                    produces="application/json")
        public String openapiJson​(javax.servlet.http.HttpServletRequest request,
                                  @Value("${springdoc.api-docs.path:#{T(org.springdoc.core.Constants).DEFAULT_API_DOCS_URL}}")
                                  String apiDocsUrl,
                                  @PathVariable
                                  String group)
                           throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • openapiYaml

        @GetMapping(value="${springdoc.api-docs.path:#{T(org.springdoc.core.Constants).DEFAULT_API_DOCS_URL}}.yaml/{group}",
                    produces="application/vnd.oai.openapi")
        public String openapiYaml​(javax.servlet.http.HttpServletRequest request,
                                  @Value("${springdoc.api-docs.path:#{T(org.springdoc.core.Constants).DEFAULT_API_DOCS_URL}}.yaml")
                                  String apiDocsUrl,
                                  @PathVariable
                                  String group)
                           throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException