-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new README.md explaining what its about
- Loading branch information
1 parent
241d768
commit 73f2ff1
Showing
1 changed file
with
14 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
# README | ||
# Rails Hello OpenAPI | ||
|
||
This README would normally document whatever steps are necessary to get the | ||
application up and running. | ||
A quick "Hello World" but for generating OpenAPI, using the Ruby on Rails extension [RSwag](https://github.com/rswag/rswag/). | ||
|
||
Things you may want to cover: | ||
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/). | ||
|
||
* Ruby version | ||
## Usage | ||
|
||
* System dependencies | ||
Clone the repository down to give it a try. | ||
|
||
* Configuration | ||
``` | ||
# Set everything up | ||
$ bundle install | ||
* Database creation | ||
# Export the OpenAPI | ||
$ rake rswag | ||
* Database initialization | ||
# Take a look at the generated OpenAPI | ||
cat swagger/api/swagger.yaml | ||
``` | ||
|
||
* How to run the test suite | ||
|
||
* Services (job queues, cache servers, search engines, etc.) | ||
|
||
* Deployment instructions | ||
|
||
* ... | ||
Preview how the API reference docs look [on Bump.sh](https://bump.sh/bump-examples/hub/code-samples/doc/rails-hello-openapi). |