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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -