domaindrivendev / Swashbuckle.WebApi

Seamlessly adds a swagger to WebApi projects!
BSD 3-Clause "New" or "Revised" License
3.07k stars 679 forks source link

Swagger generator as a command line tool #1033

Open asrikantan80 opened 7 years ago

asrikantan80 commented 7 years ago

It would be nice if the swagger.json could be generated from a web api assembly (similar to what NSwag offers). This would allow us to use swagger ui in a central website and use the swagger.json from multiple microservices ingested there.

https://github.com/NSwag/NSwag/wiki/CommandLine

davidkeaveny commented 7 years ago

Having tried both NSwag and Swashbuckle, I much prefer Swashbuckle and its ability to really customise the generation of the definition file; however, I would really like to make it part of my build chain, rather than paying that initial runtime cost, which is where NSwag's commandline tools come into play.