You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,12 @@ end
35
35
36
36
To explore your API, either download [Swagger UI](https://github.com/wordnik/swagger-ui) and set it up yourself or go to the [online swagger demo](http://petstore.swagger.wordnik.com/) and enter your localhost url documentation root in the url field (probably something in the line of http://localhost:3000/swagger_doc.json)
37
37
38
+
## Configure
39
+
You can pass a hash with some configuration possibilities to ```add_swagger_documentation```, all of these are optional:
40
+
*```:mount_path``` The path were the API documentation is loaded, default '/swagger_doc'
41
+
*```:api_version``` Version of the API that's being exposed
42
+
*```:base_path``` Basepath of the API that's being exposed
43
+
38
44
## Contributing to grape-swagger
39
45
40
46
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
0 commit comments