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
2. create config files for every microservice that you need (put it in the root project folder for example openapiEvents.config.json)
15
+
3. inside the config file you need to specify
16
+
1. output folder (for Events it would be ./src/shared/api/events)
17
+
2. microservice that you're specifying ("Events")
18
+
3. environment that using for fetch ("feature")
19
+
4. if you don't want to generate whole microservices, you can specify filterMethod and filterArray
20
+
4. run the command where you should pass your login and pass from saddleback identity server `saddlebackApi --config openapiEvents.config.json --login login --password password`
21
+
### local swagger
22
+
1. same as above
23
+
2. same as above
24
+
3. addition specify the input path to the swagger.json file
25
+
4. run the command `saddlebackApi --config openapiEvents.config.json`
26
+
11
27
## Usage
12
28
29
+
Generated folders should be untouchable. Because every generate action will delete and put generated files into the output folder.
30
+
13
31
```
14
32
$ saddlebackOpenapi --help
15
33
@@ -81,6 +99,18 @@ Which Environment should be used for swagger.json
81
99
82
100
Which service should be fetched
83
101
102
+
### `filterMethod` (autofetch)
103
+
- Default: `include`
104
+
- Type: `'include' | 'exclude'`
105
+
106
+
Which method of sort should be applied to the filter array
107
+
108
+
### `filterArray` (autofetch)
109
+
- Default: `undefined`
110
+
- Type: `string[]`
111
+
112
+
Which services should be *included* or *excluded* to/from generated list
0 commit comments