File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,16 @@ Just another swagger + express integration, but this is much simple and clean.
10
10
11
11
Configure {swagger-express} as express middleware.
12
12
13
- 'apiVersion' -> Your api version.
14
13
15
- 'swaggerVersion' -> Swagger version.
14
+ ` apiVersion ` -> Your api version.
16
15
17
- 'basePath' -> This is the base path of the server declaring the apis .
16
+ ` swaggerVersion ` -> Swagger version .
18
17
19
- 'swaggerUI' -> Where is your swagger-ui?
18
+ ` basePath ` -> This is the base path of the server declaring the apis.
20
19
21
- 'apis' -> Define your api array.
20
+ ` swaggerUI ` -> Where is your swagger-ui?
21
+
22
+ ` apis ` -> Define your api array.
22
23
23
24
```
24
25
var swagger = require('../');
@@ -37,6 +38,7 @@ app.configure(function(){
37
38
});
38
39
```
39
40
- Read from jsdoc
41
+ -
40
42
Example 'api.js'
41
43
42
44
``` js
@@ -91,8 +93,8 @@ exports.login = function (req, res) {
91
93
```
92
94
93
95
- Read from yaml file
94
- Example 'api.yml'
95
96
97
+ Example 'api.yml'
96
98
97
99
``` yml
98
100
resourcePath : /api
@@ -131,7 +133,7 @@ models:
131
133
type : String
132
134
password :
133
135
type : String
134
- ...
136
+ ` ` `
135
137
136
138
137
139
## Examples
You can’t perform that action at this time.
0 commit comments