ruby-grape / grape-swagger-rails

Swagger UI as Rails Engine for grape-swagger gem.
MIT License
252 stars 197 forks source link

Settings for "api_key" input's placeholder #113

Closed SofiaSousa closed 9 months ago

SofiaSousa commented 9 months ago

Is there any chance to add a configuration option to make possible for "api_key" input's placeholder to be customized?

https://github.com/ruby-grape/grape-swagger-rails/blob/5799fa26736e02d9b5fc040c12b5b883c6c46ea9/app/views/grape_swagger_rails/application/index.html.erb#L99

In our case, we are using Authorization bearer and it would be more intuitive for the end user to see the "access_token" placeholder instead of "api_key".

dblock commented 9 months ago

It's a good idea, care to contribute?

SofiaSousa commented 9 months ago

@dblock https://github.com/ruby-grape/grape-swagger-rails/pull/114 has been created 😺

dblock commented 9 months ago

Closed via https://github.com/ruby-grape/grape-swagger-rails/pull/114