vertx-swagger | Swagger integration in Eclipse Vert | Application Framework library
kandi X-RAY | vertx-swagger Summary
kandi X-RAY | vertx-swagger Summary
Swagger integration in Eclipse Vert.X world. A dynamic Vert.X router, configured with a swagger file and a swagger-codegen plugin to generate a server stub.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Remove the mapping from the invoker .
- Create an auth handler .
- Configure route .
- Deploys verticle .
- Gets the array regular expression .
- Parses the incoming credentials .
- Handles error response .
- Retrieves a Pet by ID .
- Logs user with given username and password .
- Compares this tag with the specified id .
vertx-swagger Key Features
vertx-swagger Examples and Code Snippets
Community Discussions
Trending Discussions on vertx-swagger
QUESTION
I want to implement Swagger-UI in Vert.X app. I have listed all routes and I want to see them in swagger-ui like in SpringBoot. I have also manually edited them in swagger-editor. So, how to open localhost:8080/swagger-ui.html from vert.x app and there to see all routers.
I read that i need to save the json from swagger-editor and to put it in src/resources. After that what?
Also i found a great stuff here: https://github.com/phiz71/vertx-swagger and http://vertx.io/blog/presentation-of-the-vert-x-swagger-project/
But how to implement it?
...ANSWER
Answered 2018-Feb-01 at 08:39Well, you started in the wrong direction a bit. Those examples demonstrate how to build VertX application out of Swagger files. What you want is to serve Swagger UI through VertX. I've put an example project for you: https://github.com/AlexeySoshin/VertxSwaggerUI
When you open http://localhost:8080/swagger/ you'll see all Swagger documentation, as usual.
If you want to do that by yourself:
- Copy https://github.com/swagger-api/swagger-ui/tree/master/dist contents under your resources/webroot
- Put swagger.json along with those files
- Create StaticHandler in VertX:
router.route("/*").handler(StaticHandler.create());
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vertx-swagger
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page