...
Adding a Swagger UI Maven dependency is all what is needed to start accessing Swagger documents with the help of Swagger UI.
|
For example, let's assume a JAX-RS endpoint is published at 'http://host:port/context/services/'.
...
The OpenApiFeature has a way to pre-configure certain Swagger UI parameters (https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md) through SwaggerUiConfig. Theway it is implemented is by passing those parameters as a query string so the Swagger UI could adjust itself.
Samples
CXF's distribution contains the following samples.
- samples/jax_rs/description_openapi_microprofile_spring: the OpenAPI v3.0 standalone sample using Spring and OpenApiFeature programmatic configuration