We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b86bff commit 39ca987Copy full SHA for 39ca987
README.md
@@ -20,10 +20,12 @@ Configure {swagger-express} as express middleware.
20
21
`swaggerVersion` -> Swagger version.
22
23
-`basePath` -> This is the base path of the server declaring the apis.
24
-
25
`swaggerUI` -> Where is your swagger-ui?
26
+`swaggerURL` -> Path to use for swagger ui web interface.
+
27
+`swaggerJSON` -> Path to use for swagger ui JSON.
28
29
`apis` -> Define your api array.
30
31
```
@@ -34,7 +36,8 @@ app.configure(function(){
34
36
app.use(swagger.init(app, {
35
37
apiVersion: '1.0',
38
swaggerVersion: '1.0',
- basePath: 'http://localhost:3000',
39
+ swaggerURL: '/swagger',
40
+ swaggerJSON: '/api-docs.json',
41
swaggerUI: './public/swagger/',
42
apis: ['./api.js', './api.yml']
43
}));
0 commit comments