1

I have a yaml file containing all the configuration to my rest end points for swagger document.

I am able to generate the typescript-angular2 online from swagger online editor which is working fine.

But my requirement is to generate the client in a jenkins job or command prompt.

I heard that there is a jar from which I can generate that. is anybody tried that and generated typescript-angular2 client from swagger yaml file?

I have gone through the link and its different from what I look for swagger java client

Aniruddha Das
  • 20,520
  • 23
  • 96
  • 132
  • 1
    Possible duplicate of [How to generate java client code for swagger REST API documentation](https://stackoverflow.com/questions/33354557/how-to-generate-java-client-code-for-swagger-rest-api-documentation) – Helen Sep 19 '17 at 19:29
  • 2
    no that is different! its about the latest angular 2 client and generating from command through jars – Aniruddha Das Sep 19 '17 at 19:40
  • The idea is the same - use Swagger Codegen. It's available as a JAR or via a REST API (http://generator.swagger.io). – Helen Sep 19 '17 at 19:42
  • 1
    I am able to do that from the online editor but unable to do that from command or using plugin. i need this to configure in jenkins so that it will automatically do on build success – Aniruddha Das Sep 19 '17 at 19:45
  • 1
    What about the second answer on that question? Using curl and the generator endpoints, you can try it here: https://generator.swagger.io/ this is what the online editor does – moondaisy Sep 26 '17 at 19:15

0 Answers0