Webjars ship js/css/probably html resources, but still need an servlet
to return them to browser. Hence you need to amend your application.

Long time ago I come with "standalone" swagger-ui deployment based
repackaged webjar:
https://github.com/Code-House/karaf-swagger/blob/master/ui/pom.xml
Take a look and try amending it to your needs.

Kind regards,
Łukasz
--
Code-House
http://code-house.org/

On 25.08.2020 08:51, Gerald Kallas wrote:
> Dear all,
> 
> I've installed swagger-ui as described here
> 
> https://cwiki.apache.org/confluence/display/CXF20DOC/OpenApiFeature#OpenApiFeature-EnablingSwaggerUIinOSGicontainer(Karaf)
> 
> with the command
> 
> install mvn:org.webjars/swagger-ui/3.32.3
> 
> Further I've an API endpoint that provides a swagger definition, reachable 
> under
> 
> https://localhost:8443/apiisp001/base/api-doc.
> 
> Could someone point me out how I can call swagger-ui from the bundle 
> installed?
> 
> Best
> Gerald
> 

Reply via email to