Skip to content

Commit 7ce604c

Browse files
SoramiiLogooos
andauthored
docs: update readme (#142)
Co-authored-by: Logos <[email protected]>
1 parent 9bfad84 commit 7ce604c

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.changeset/sharp-numbers-film.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openapi-ts-request': patch
3+
---
4+
5+
docs:update readme

README-en_US.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ run:
7676
npm run openapi
7777
```
7878

79-
generate result:
79+
run:
8080

8181
```bash
8282
src/apis/index.ts #interface entry file
@@ -126,7 +126,7 @@ generateService({
126126

127127
add 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
132132
npm run openapi
@@ -147,7 +147,7 @@ generateService({
147147

148148
add 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
153153
npm 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
210210
openapi -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 |

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
132132
npm 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
153153
npm run openapi
@@ -204,7 +204,7 @@ $ openapi --help
204204
-h, --help display help for command
205205
```
206206

207-
生成结果
207+
运行
208208

209209
```bash
210210
openapi --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 |

0 commit comments

Comments
 (0)