swagger-docs icon indicating copy to clipboard operation
swagger-docs copied to clipboard

Generates swagger-ui json files for Rails APIs with a simple DSL.

Results 36 swagger-docs issues
Sort by recently updated
recently updated
newest added

I used rails swagger gem for documenting my rails api. it is working fine for all controller . but it is not working for devise::sessionsController. Here is my code ,...

I am trying to send a param with type `array`, but the params that I am getting in the controller is always of type `string`. ##### Swagger_api definition: ``` swagger_api...

And if so how to do it? I can't tell if this supports the consume field

When just setting base_path, Swagger::Docs::Config.register_apis({ '1.0' => { base_path: 'http://localhost:3000' } }) $: rails swagger:docs —————————————————— TypeError: no implicit conversion of nil into String ……/lib/swagger/docs/generator.rb:243:in `create_output_paths' ——————————————————

Just added swagger-docs to my rails application, pulling up the /swagger/dist/index.html?url=/apidocs/api-docs.json gives me an "Unable to render this definition The provided definition does not specify a valid version field." --...

Hey guys. What if I have current user local variable on my controller action? ``` def index @conversation = Conversation.new(current_user.id, recipient_id_param) render json: @conversation, user: current_user end ``` ``` def...

I'm using Rails 4.2, and attempting to implement swagger-docs into my api. When I run rake swagger:docs, I get the application docs but none of the controller ones. Here's my...

Is it possible that I get an error when I enter the wrong controller action name in the `_doc` file in `swagger_docs` folder? For e.g., if I have following `office_doc.rb`...

Looking for a good example, and maybe this belongs in the specs(?), of how to mark up a post/put route that takes a json body and how to denote the...

I have implemented the swagger using this library in my Rails application. In my Registration Controller I have added the below code: swagger_controller :registrations, 'User Management' This line creates a...