How to deal with API clients, the lazy way — from code generation to release management
.Part 2: Code generation. To produce the API customers in various shows languages we support, in addition to API documents we utilize a CLI tool called openapi-generator . The generator parses the OpenAPI meaning file and produces a variety of source code modules in a folder on the filesystem of your option. If you have more than one customer to produce, you will discover soon how troublesome the procedure can get: you may require to conjure up openapi-generator several times, with various criteria, targeting various locations in the filesystem, perhaps various git repositories; when the generation action is done, you need to go through all the produced code, include it to variation control, possibly tag, push to a remote … You get the essence.