Description
OasRails is a Rails engine that generates automatic, interactive documentation for your Rails APIs. It produces an OpenAPI 3.1 document and displays it with RapiDoc, so developers can browse the endpoints on a web page. The engine relies on the OasCore gem for the specification work. It is built to be dynamic, so no command is needed to regenerate the docs. Instead of learning a separate DSL, you complement the default documentation with a few comments in your code. It works with plain Rails APIs, without adding Grape or RSpec. The README compares it with other tools: ApiPie does not support OAS 3.1 and needs a DSL, Rswag and rspec_api_documentation depend on RSpec, and grape-swagger requires Grape. The author describes the project as not yet production ready, with rough code that may behave unexpectedly, and asks for contributions. A demo app and an installation and usage video are linked from the README. It suits Rails developers who want API documentation that stays close to their code without much extra work.…
Highlights
- OpenAPI 3.1 document generated for Rails APIs
- RapiDoc interactive documentation page
- No command needed to generate docs
- Comments instead of a separate DSL
- Works without Grape or RSpec
Ratings & Reviews
No ratings yet
Be the first to rate Oas Rails.
People also visit
Utoipa
Simple, Fast, Code first and Compile time generated OpenAPI documentation
Oas Rails FAQ
What does OasRails do?
It is a Rails engine that generates an OpenAPI 3.1 document for your API and shows it as interactive documentation with RapiDoc.
Do I need to run a command to update the docs?
No. The README says the docs are dynamic and need no generation command.
How much do I have to change in my code?
You complement the default documentation with a few comments. The README says you do not need to learn a DSL.
Is it ready for production?
The author says it is not yet production ready and may behave unexpectedly, though development is active.
Where can I see it working?
The README links a demo app and a video that covers installation and usage.
What are the best Oas Rails alternatives?
Popular alternatives to Oas Rails include Grape Swagger, RapiDoc and Utoipa. See all Oas Rails alternatives



