swagger-codegen
swagger-codegen copied to clipboard
Automatically generate client side angular 2 - typescript codes when building ASP.NET Core WebAPI Projects
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
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