mirror of
https://github.com/ditkrg/jsonapi-swagger.git
synced 2026-01-22 22:06:50 +00:00
38 lines
877 B
Markdown
38 lines
877 B
Markdown
# JSONAPI Swagger
|
|
|
|
Generate JSONAPI Swagger Doc.
|
|
|
|
[](https://rubygems.org/gems/jsonapi-swagger) [](https://github.com/superiorlu/jsonapi-swagger/blob/master/LICENSE)
|
|
|
|
## 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.
|