I've done this many times using code generation, etc. but still find the iteration time to be too long. Ideally, I'd like to get close to the speed of thought.
Bonus points if you can point to a code repository as an example.
Otherwise, this is a good guideline:
http://sweng.the-davies.net/Home/rustys-api-design-manifesto
every API is serverless, typescript, openapi, has GitHub CI/CD, and runs locally and on AWS lambda
shoot me a message and I'd love to show you around: christian (at) scaffold.ly