Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class Api::V1::UserController < Api::V1::BaseController
response :not_acceptable
response :unprocessable_entity
end

swagger_api :update do |api|
summary "Update an existing User item"
Api::V1::UserController::add_common_params(api)
Expand Down Expand Up @@ -324,6 +324,11 @@ end
<td>Takes a symbol or status code and passes it to `Rack::Utils.status_code`. The current list of status codes can be seen here: https://github.com/rack/rack/blob/master/lib/rack/utils.rb. An optional message can be added.</td>
</tr>

<tr>
<td>consumes</td>
<td>Custom list of MIME types the API can consume. This overrides global settings for the specific API call.</td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -384,7 +389,7 @@ end
```

If you want swagger to find controllers in `Rails.application` and/or multiple
engines you can override `base_application` to return an array.
engines you can override `base_application` to return an array.

```ruby
class Swagger::Docs::Config
Expand Down