using apache camel REST DSL using restlet adding swagger - spring-boot

I am using apache camel REST DSL using springboot. All the configuration works fine. Now I want to add REST documentation using camel swagger java component. The REST DSL and swagger java, works out of the box. I can see the JSON output of the exposed REST services.
Now Question, what steps I need to follow, such that i can view camel REST documentation using swagger-ui?
I searched for answers, however the only solution was to download swagger-ui from github and "copy" <dist> folder to project, this doesn't seems to work, getting 404. URL i am using is localhost:8081\rest\index.html.
I liked the spring-fox swagger2, is it something can be supported in camel?

See this example which includes swagger ui.
https://github.com/apache/camel/tree/master/examples/camel-example-swagger-xml
The index.html file has more details how to access the swagger ui when the application runs.

Related

Spring boot -Open api 3 doc generation dynamically without maven and restarting application (swagger Interceptor implementation)

I am using spring boot in which I wanted to dynamically generate open api 3 specification by uploading json/yml and view in swagger ui
upload json/yml
dynamically generate swagger /open api specification
3.view in swagger ui
Is there any approach /plugin available to implement this?
similar implementation as swagger Interceptor but our workstation does not allow to use interceptor. so we are generating our own tool

With Spring-Boot and WebJars how do I configure Swagger-UI

I have a Spring-Boot Application, generating swagger JSON at /contextPath/v2/api-docs.
Due to security concerns I have installed Swagger-UI from webJars version: 4.1.3.
Swagger-UI no longer allows ?url as a query parameter.
I have tried placing swagger-config.yaml and swagger-config.json in /resources/static/ and /resources/META-INF/resources/
I have also tried adding a new rest controller for a GET endpoint of
webpack://SwaggerUIBundle/swagger-config.yaml
So far nothing has worked.
When I manually paste the endpoint into "Explore" the Docs load.
So I know the problem isn't with my generated swagger JSON.
So How do I get Swagger-UI to load my Swagger JSON when the page loads?

Adding Swagger API Documentation to Maven Site

I have a Spring Boot project and I'm using swagger to test and document the API. The project also contains a bunch of classes that are used as libraries and I'm using scala docs to document those. Is there a way to unify API docs (from swagger) and Scala Docs as I'm hosting the docs using maven site plugin.

Apache Wink integration with Swagger

I am trying to use Swagger in the existing Wink restful web services. I have done all the annotations as mentioned in the swagger documentation but now I need to integrate the rest of the stuff. E.g. configuring the swagger UI, setting up the swagger configurations during server startup etc. Can any one point me to any documentation or provide some steps to follow?
I have just made a project for Apache Wink. You can find it below
https://github.com/zouzias/swagger-jaxrs-wink
I will push it to the swagger-core samples collections asap as well.

Grails How to using GSP-Views and REST Webservice in the same Project

I am very new in Groovy and Grails and need some help with my project.
I am using Grails 2.3.8 and the Spring Security Core plugin for Authorization. I created some domain-classes and generated all necessary files with "generate-all"-command. So I can edit my data with the normal gsp-views. This is working fine.
But now I have to extend this project with a REST Webservice (the views to edit data should stay). There are multiple way's to create Webservice I've seen, like Annotations with #Resource on the domain or an extendable RestfulController or I found plugins like Jaxrs.
Could anyone please help me to find out which is the best approach to add a REST Webservice on an existing project which should still work? Or does anyone has a example for something like this?
Thanks in advance,
sbr
EDIT: I'm doing it now with spring security core and acl plugin and the JAXRS plugin for REST api.
To secure the REST api I installed the spring security rest plugin. The authentification over rest api is working fine. BUT now I can't login on my UI Views which are secured by spring security core and acl. There is no error at login, but after click on login I'm never logged in. It is like nothing happens.
Does anyone have an idea what could be wrong or how I have to manage both authentifications?

Resources