jsonapi-swagger/README.md
2019-05-05 18:57:08 +08:00

40 lines
1007 B
Markdown

# JSONAPI Swagger
Generate JSONAPI Swagger Doc.
[![Gem Version](https://img.shields.io/gem/v/jsonapi-swagger.svg)](https://rubygems.org/gems/jsonapi-swagger) [![GitHub license](https://img.shields.io/github/license/superiorlu/jsonapi-swagger.svg)](https://github.com/superiorlu/jsonapi-swagger/blob/master/LICENSE)
[![jsonapi-swagger-4-2-9.gif](https://i.loli.net/2019/05/05/5ccebf5e782b7.gif)](https://i.loli.net/2019/05/05/5ccebf5e782b7.gif)
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'jsonapi-swagger'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install jsonapi-swagger
## Usage
```sh
rails generate jsonapi:swagger User # UserResponse < JSONAPI::Resource
```
## Resource
- [JSONAPI](https://jsonapi.org/)
- [JSONAPI::Resources](http://jsonapi-resources.com/)
- [Rswag](https://github.com/domaindrivendev/rswag)
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/superiorlu/jsonapi-swagger.