I have been lately looking at an API design first approach with Ruby on Rails and was thinking, what if it could be part of the framework itself?
Rails has always promoted the best practices the industry has to offer with strong emphasis on conventions and rapid prototyping and development.
An API Design First approach could fit what Rails stands for. I am curious to know what other members in this forum think about this.
In short an API design first approach would enable us to do the following
- Prototype APIs with mock responses.
- Ability to generate openapi specifications for the routes.
- Generate mock responses using the specifications.
- Ability to force any mock response documented, by the clients.
Potential Impact:
- Teams can start integrations faster without needing to wait for full API implementations.
- More iterative approach to API development.