https://github.com/xiaokyo/yapi-to-typescript
yapi document transform typescript with raycast extension
https://github.com/xiaokyo/yapi-to-typescript
Last synced: 8 months ago
JSON representation
yapi document transform typescript with raycast extension
- Host: GitHub
- URL: https://github.com/xiaokyo/yapi-to-typescript
- Owner: xiaokyo
- Created: 2023-06-20T06:57:04.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T06:55:39.000Z (over 1 year ago)
- Last Synced: 2025-01-07T07:23:12.040Z (over 1 year ago)
- Language: TypeScript
- Size: 2.74 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# YAPI
yApi's document transform to typescript interfaces
## Quickly Start
- configration yApi host and cookie
- Got a yApi's document id
- typing in raycast's yApi to typescript tool
## example
create a `yapi-to-type.md` file in generater folder
```
API_PREFIX: /product-api
http://192.168.5.222/project/158/interface/api/220372
http://192.168.5.222/project/462/interface/api/220390
http://192.168.5.222/project/158/interface/api/220504
API_PREFIX: /quick-search-product-center
http://192.168.5.222/project/462/interface/api/220396
http://192.168.5.222/project/462/interface/api/131538
http://192.168.5.222/project/462/interface/api/44584
http://192.168.5.222/project/462/interface/api/32131
```
run the command ```genTypescriptInterfaceFilesByIds```
then you will get the `types` and `services` folder in the `generater` folder