O'Reilly logo

TypeScript Microservices by Parth Ghiya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generating a project from a Swagger definition

Until now we were generating swagger definition from our source code. The other way round also holds true. We can easily generate a project from a Swagger definition and type of language (we saw something similar in Chapter 7, Service State and Interservice Communication. Rings a bell? That is correct. rPC and code generation). Let's download swagger-code-generate and create our project out of it:

  1. Check out the updated hello_world_swagger.yml in the extracted src chapter 8/swagger-code-gen. It has one more added route/endpoint of the API to update the product information.
  2. Next step is to download swagger-code-gen from at https://github.com/swagger-api/swagger-codegen, so we can even configure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required