File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed
Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' openapi-ts-request ' : patch
3+ ---
4+
5+ docs: update readme
Original file line number Diff line number Diff line change 7676npm run openapi
7777```
7878
79- generate result :
79+ run :
8080
8181``` bash
8282src/apis/index.ts # interface entry file
@@ -126,7 +126,7 @@ generateService({
126126
127127add the command in ` script ` of ` package.json ` : ` "openapi": "node xxx/xxx/openapi-ts-request.config.js" `
128128
129- generate result :
129+ run :
130130
131131``` bash
132132npm run openapi
@@ -147,7 +147,7 @@ generateService({
147147
148148add the command in ` script ` of ` package.json ` : ` "openapi": "ts-node xxx/xxx/openapi-ts-request.config.ts", `
149149
150- generate result :
150+ run :
151151
152152``` bash
153153npm run openapi
@@ -204,7 +204,7 @@ $ openapi --help
204204 -h, --help display help for command
205205```
206206
207- generate result :
207+ run :
208208
209209``` bash
210210openapi -i ./spec.json -o ./apis
@@ -215,7 +215,7 @@ openapi -i ./spec.json -o ./apis
215215| props | required | type | default | remark |
216216| --- | --- | --- | --- | --- |
217217| schemaPath | yes | string | - | Swagger2/OpenAPI3 URL |
218- | serversPath | no | string | './src/apis' | the folder path for the generated results |
218+ | serversPath | no | string | './src/apis' | the folder path for the run results |
219219| requestLibPath | no | string | 'axios' | custom request lib path, for example: '@/request', 'node-fetch' |
220220| enableLogging | no | boolean | false | open the log |
221221| priorityRule | no | string | 'include' | priority rule, include/exclude/both |
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ generateService({
126126
127127在 ` package.json ` 的 ` script ` 中添加命令: ` "openapi": "node xxx/xxx/openapi-ts-request.config.js" `
128128
129- 生成结果 :
129+ 运行 :
130130
131131``` bash
132132npm run openapi
@@ -147,7 +147,7 @@ generateService({
147147
148148在 ` package.json ` 的 ` script ` 中添加命令: ` "openapi": "ts-node xxx/xxx/openapi-ts-request.config.ts", `
149149
150- 生成结果 :
150+ 运行 :
151151
152152``` bash
153153npm run openapi
@@ -204,7 +204,7 @@ $ openapi --help
204204 -h, --help display help for command
205205```
206206
207- 生成结果 :
207+ 运行 :
208208
209209``` bash
210210openapi --i ./spec.json --o ./apis
@@ -215,7 +215,7 @@ openapi --i ./spec.json --o ./apis
215215| 属性 | 必填 | 类型 | 默认值 | 说明 |
216216| --- | --- | --- | --- | --- |
217217| schemaPath | 是 | string | - | Swagger2/OpenAPI3 地址 |
218- | serversPath | 否 | string | './src/apis' | 生成结果的文件夹路径 |
218+ | serversPath | 否 | string | './src/apis' | 运行结果文件夹路径 |
219219| requestLibPath | 否 | string | 'axios' | 自定义请求方法路径,例如:'@/request'、'node-fetch' |
220220| enableLogging | 否 | boolean | false | 是否开启日志 |
221221| priorityRule | 否 | string | 'include' | 模式规则,可选include/exclude/both |
You can’t perform that action at this time.
0 commit comments