web-servicesswaggervert.xgenerated-code

Generate swagger-api with existing vert.x project


I have an existing vert.x project which became too heavyweight and intransparent.*

To replace it I am checking for several options, one of those being swagger.

Does anyone know an opensource lib which can create a swagger-api from vert.x?


Solution

  • I'm not aware of something like that. The only vertx-swagger integration does exactly the opposite: generates Vertx router based on Swagger configuration: https://github.com/phiz71/vertx-swagger

    What you can do is generate all routes using this solution: List all registered routes in Vertx

    Then add them manually to Swagger Editor, and finally generate your new APIs with Swagger Codegen

    Do mind that rewriting you application into another language or framework probably won't solve your problems. NodeJS is not as typesafe as Vertx, and SpringBoot is not as concurrent as Vertx. But if you don't need typesafety or concurrency, both are viable options, of course.