grape-swagger-rails
grape-swagger-rails copied to clipboard
Swagger UI as Rails Engine for grape-swagger gem.
I have this definition in my API ``` params do requires :daycare_attributes, type: Hash do requires :departments_attributes, type: Array do requires :name end end ``` The UI shows  Which...
I needed a hook so that I could create an oauth token based on the logged in user
Hi, Considering the following resource, It seems to generate an improper swagger Data Type Example Value: ```rb module Test module V1 class Ping < Grape::API resource :ping do desc "Are...
API is Rails Api based I have the css and javascript in the asset pipeline and they are being generated and are loading to the browser. However when viewing a...
[CORE-826](https://welltravel.atlassian.net/browse/CORE-828) # Bug Description: Consider this [code block](https://github.com/ruby-grape/grape-swagger-rails/blob/master/app/views/grape_swagger_rails/application/index.html.erb#L18-L42): This code block going to initialize `SwaggerUi`. **But** To initialize `SwaggerUi` we need to have authorization header. And the inside `onComplete` we...
Right now grape-swagger-rails expects to be mounted only once, at a single route. It also expects a single global definition of `options.url`, `options.app_url`, etc. It would be really useful if...
Hi, My initializer looks something like this: ``` ruby GrapeSwaggerRails.options.tap do |o| # other details omitted o.before_filter do |request| authenticate_with_http_basic do |user, pass| user == ENV['basic_auth_username'] && password == ENV['basic_auth_password']...
It appears that Swagger-UI correctly sets an authorization header when added in the interface (api key field). However, if the endpoint has the option "authorizations" set with "oauth2", it will...
Currently grape-swagger-rails has hard-coded support for passing through a few of the Swagger-UI options from the grape-swagger-rails initializer to the SwaggerUi initializer, in the index.html.erb file. Good examples of this...
Swagger-ui supports multiple languages via translations. This is currently ignored.