Class OpenApiConfig
java.lang.Object
com.irurueta.authserver.resourceserver.api.web.OpenApiConfig
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springdoc.core.models.GroupedOpenApiapiGroup()Groups the application's own API paths.io.swagger.v3.oas.models.OpenAPIDescribes the API.
-
Field Details
-
API_DOCS_PATH
Path of the OpenAPI document.- See Also:
-
BEARER_SCHEME
Name of the bearer-token security scheme.- See Also:
-
-
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.
-