Class OpenApiConfig

java.lang.Object
com.irurueta.authserver.resourceserver.api.web.OpenApiConfig

@Configuration(proxyBeanMethods=false) public class OpenApiConfig extends Object
Runtime OpenAPI document of the HTTP API of the resource server, served by springdoc at "/v3/api-docs". The contract apis/resource-server/rest-server/resource-server-api-v1.yaml is the source of truth: the operations are described by the interface generated from it, and this class only adds what springdoc cannot read from it (the info block and the security scheme). OpenApiDriftIT fails when the document served differs from the contract.
  • Field Details

  • Constructor Details

    • OpenApiConfig

      public OpenApiConfig()
  • Method Details

    • resourceServerOpenApi

      @Bean public io.swagger.v3.oas.models.OpenAPI resourceServerOpenApi()
      Describes the API.
      Returns:
      the OpenAPI info block.
    • apiGroup

      @Bean public org.springdoc.core.models.GroupedOpenApi apiGroup()
      Groups the application's own API paths.
      Returns:
      the group of API paths.