asp.net web api - Swagger WebApi create json on build -
is there way create swagger json during build task of web api? want use json feed code generator , generate typescript definition file.
any more welcome!
you can use nswag command line tools this:
nswag.exe webapi2swagger /assembly:"path/to/assembly.dll" /output:"path/to/swagger.json"
this generates swagger specification controllers in given dll.
for more information read page.
Comments
Post a Comment