swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

Automatically generate client side angular 2 - typescript codes when building ASP.NET Core WebAPI Projects

Open JudeAlquiza opened this issue 9 years ago • 1 comments

Hi

Just want to ask if it is possible to automatically generate client side angular 2 typescript codes when building or running ASPNET Core WebAPI projects.

What I mean is instead of manually navigating to the endpoint that has the swagger json spec, copying and pasting it in code-gen and downloading the generated codes, is it possible to automatically generate them when building or running ASP NET Core WebAPI projects.

Thanks in advance

Thanks Jude Alquiza

JudeAlquiza avatar Jun 23 '17 00:06 JudeAlquiza

As part of the build, you can leverage Swagger Generator (https://generator.swagger.io) to generate code by submitting a HTTP request: https://github.com/swagger-api/swagger-codegen#online-generators

wing328 avatar Jul 03 '17 13:07 wing328