[
https://issues.apache.org/jira/browse/CXF-7826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16610456#comment-16610456
]
Andriy Redko commented on CXF-7826:
-----------------------------------
Hi [~Ortofta],
I was playing around with possible implementations, there not much choices left
for CXF. The first working prototype I have is relying on the temporary
redirect: when the Swagger UI endpoint is triggered (for the first time), we
add the query parameters to it from the configuration (comes from XxxFeature)
and essentially redirect to itself. This would happen only once. Not
particularly excited about this approach, the complete URL rendered on the
/services directory won't reflect that as well (though it could be difficult to
achieve in general).
Thanks.
> Make it possible to configure Swagger UI features
> -------------------------------------------------
>
> Key: CXF-7826
> URL: https://issues.apache.org/jira/browse/CXF-7826
> Project: CXF
> Issue Type: Improvement
> Components: Configuration
> Reporter: Markus Svensson
> Assignee: Andriy Redko
> Priority: Minor
>
> I use the Swagger2Feature in Apache CXF to provide Swagger documentation for
> our API. Swagger UI is provided as a Maven dependency via WebJars.
> I would like to configure some Swagger UI properties (as documented
> [here|https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md]),
> for example validatiorUrl.
> It would be neat to be able to configure these settings via the
> OpenApiFeature and/or Swagger2Feature configuration.
>
> The current workaround for me is to build my own Swagger UI dependency
> including the configuration options I need.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)