I recently started using Swagger to generate flask templates: http://editor.swagger.io/#/
My workflow is flawed, and I am wondering where I am going wrong. I:
- Use the UI to write the API V1 .yaml
- Generate the code using the UI editor, which downloads a stubbed out zip
- Write the functions that were stubbed out
This part of the process is fine. However, let's say we want to add a new endpoint or change an existing endpoint. Now what? I:
- reload the swagger editor
- edit the yaml
- generate the code, which downloads a new zip and blows away the old code
- take the newly generated code and do a "self-merge" where I copy over the new stub into the old code and copy over the new yaml into the old
It seems there is a gap between the initial generation of the flask template and ongoing maintenance. What am I doing wrong?