|
@@ -9,29 +9,31 @@ const apis = [
|
|
|
},
|
|
|
]
|
|
|
|
|
|
-apis?.forEach((api) => {
|
|
|
- generateApi({
|
|
|
- output: api.output,
|
|
|
- templates: path.resolve(__dirname, './templates'),
|
|
|
- url: api.url,
|
|
|
- httpClientType: 'axios',
|
|
|
- modular: true,
|
|
|
- cleanOutput: true,
|
|
|
- moduleNameIndex: 2,
|
|
|
- moduleNameFirstTag: true,
|
|
|
- unwrapResponseData: true,
|
|
|
- generateUnionEnums: true,
|
|
|
- defaultResponseType: 'AxiosResponse',
|
|
|
-
|
|
|
-
|
|
|
+apis?.forEach((api, index) => {
|
|
|
+ setTimeout(() => {
|
|
|
+ generateApi({
|
|
|
+ output: api.output,
|
|
|
+ templates: path.resolve(__dirname, './templates'),
|
|
|
+ url: api.url,
|
|
|
+ httpClientType: 'axios',
|
|
|
+ modular: true,
|
|
|
+ cleanOutput: true,
|
|
|
+ moduleNameIndex: 2,
|
|
|
+ moduleNameFirstTag: true,
|
|
|
+ unwrapResponseData: true,
|
|
|
+ generateUnionEnums: true,
|
|
|
+ defaultResponseType: 'AxiosResponse',
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- })
|
|
|
- .then((r) => {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
})
|
|
|
- .catch((e) => console.error(e))
|
|
|
+ .then((r) => {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch((e) => console.error(e))
|
|
|
+ }, index * 1500)
|
|
|
})
|