Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bump-sh-examples/rails-code-first
Add OpenAPI powered documentation to your Rails API with RSwag.
https://github.com/bump-sh-examples/rails-code-first
api api-code-first api-documentation api-rest code-first code-first-approach oas3 openapi openapi3 openapi31 rails rails-api swagger
Last synced: 3 days ago
JSON representation
Add OpenAPI powered documentation to your Rails API with RSwag.
- Host: GitHub
- URL: https://github.com/bump-sh-examples/rails-code-first
- Owner: bump-sh-examples
- License: other
- Created: 2023-12-29T18:09:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-11T16:05:59.000Z (11 months ago)
- Last Synced: 2024-11-20T18:43:24.009Z (2 months ago)
- Topics: api, api-code-first, api-documentation, api-rest, code-first, code-first-approach, oas3, openapi, openapi3, openapi31, rails, rails-api, swagger
- Language: Ruby
- Homepage: https://bump.sh/bump-examples/hub/code-samples/doc/rails-hello-openapi
- Size: 43.9 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_CC-BY-NC-SA-4.0
Awesome Lists containing this project
README
# Rails Hello OpenAPI
A quick "Hello World" but for generating OpenAPI, using the Ruby on Rails extension [RSwag](https://github.com/rswag/rswag/).
This repository was built as sample code for the Bump.sh guide on [Generating OpenAPI docs for Ruby on Rails with RSwag](https://docs.bump.sh/guides/openapi/code-first-rails/).
## Usage
Clone the repository down to give it a try.
```
# Set everything up
$ bundle install# Export the OpenAPI
$ rake rswag# Take a look at the generated OpenAPI
cat swagger/api/swagger.yaml
```Preview the API reference docs [on Bump.sh](https://bump.sh/bump-examples/hub/code-samples/doc/rails-hello-openapi).
## License
The contents of this repository are licensed under [CC BY-NC-SA
4.0](./LICENSE_CC-BY-NC-SA-4.0).