Extend r7kamura/autodoc to generate documention for Grape API.
Add this line to your application's Gemfile:
gem 'autodoc-grape'params do
requires :id, type: Integer
optional :hash, type: Hash do
requires :attr, type: String
end
end### Parameters
* id Integer (required)
* hash Hash
* attr String (required)The following are all valid options.
- required
- values
- default
- description