Added a new controller (OpenapiController) and its view to show the OpenAPI UI.
Updated config/application.rb to support allow CORS.
Updated config/routes.rb to show OpenAPI UI in with {{base_url}}/openapi.
Added tests for OpenapiController.
Insight 📝
In this pull request, I decided to use the static page approach as it can be easily added to any of our web templates. If we use Docker, we might need to deploy with another server (app/service) or port.
What happened 👀
{{base_url}}/openapi
.OpenapiController
.Insight 📝
In this pull request, I decided to use the static page approach as it can be easily added to any of our web templates. If we use Docker, we might need to deploy with another server (app/service) or port.
I decided to use https://github.com/stoplightio/elements instead of Swagger UI, it has a better UI/UX (PoW)
Proof Of Work 📹