Request: add functionality that can configure routes in a Rails or Sinatra app.
This gem covers some really important areas to make it possible to go API-first in a Rack-based app. In order to go API-first, you need tooling that makes sure the API implementation matches the API design. This can be done at development-time, build-time, or run-time. A common place to mess this is up is with URLs and methods, though. People often manually configure the API routes in their application and then call APIs directly in their tests using URLs and methods.
What if there was a way for this gem to take an OpenAPI definition and build the routes for you in Rails or Sinatra? There are of course challenges to this as operations don't always align with how the API is implemented (e.g. an operation may not directly tie to a specific Rails controller). There may be some ways around this, such as OpenAPI Extensions.
Additionally, to fully remove the URLs and methods, you need to have a test client that can call the API based on the operation ID. That might be another feature beyond functionality to configure routes, but it could be one that's helpful.
If you have interest in this, I'd be happy to help explore this. We've done this for a Sinatra app and could apply what we've learned here. We could break it up into smaller pieces like that—Rails conf, Sinatra config, maybe a test client.
Request: add functionality that can configure routes in a Rails or Sinatra app.
This gem covers some really important areas to make it possible to go API-first in a Rack-based app. In order to go API-first, you need tooling that makes sure the API implementation matches the API design. This can be done at development-time, build-time, or run-time. A common place to mess this is up is with URLs and methods, though. People often manually configure the API routes in their application and then call APIs directly in their tests using URLs and methods.
What if there was a way for this gem to take an OpenAPI definition and build the routes for you in Rails or Sinatra? There are of course challenges to this as operations don't always align with how the API is implemented (e.g. an operation may not directly tie to a specific Rails controller). There may be some ways around this, such as OpenAPI Extensions.
Additionally, to fully remove the URLs and methods, you need to have a test client that can call the API based on the operation ID. That might be another feature beyond functionality to configure routes, but it could be one that's helpful.
If you have interest in this, I'd be happy to help explore this. We've done this for a Sinatra app and could apply what we've learned here. We could break it up into smaller pieces like that—Rails conf, Sinatra config, maybe a test client.