We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f6e6dc commit b51bf27Copy full SHA for b51bf27
README.md
@@ -45,6 +45,14 @@ Create an initializer (e.g. `./config/initializers/swagger.rb`) and specify the
45
```ruby
46
GrapeSwaggerRails.options.url = '/swagger_doc.json'
47
GrapeSwaggerRails.options.app_url = 'http://swagger.wordnik.com'
48
+``````
49
+
50
+You can dynamically set `app_url` for each request use a `before_filter_proc`:
51
52
+```ruby
53
+GrapeSwaggerRails.options.before_filter_proc = proc {
54
+ GrapeSwaggerRails.options.app_url = request.protocol + request.host_with_port
55
+}
56
```
57
58
You can set the app name, default is "Swagger".
0 commit comments