A chrome extension to generate code for yApi.
install by chrome extension
Or
- Download the release file dist.zip
git clone https://github.com/xianshenglu/yapi-to-code.git
-
Unzip the dist.zip file.
-
Click the
Load unpacked
button inchrome://extensions/
page and choose dist folder.
- Click the
detail
button
- Scroll to bottom and click the
Extension options
-
Configure the required fields Or you can configure it later after you get the generated code. You must re-configure
API 地址
at least. -
Go back to your yApi site and reload!
-
Operate like Usage and go back to step 5 if you want.
- Highlight custom code
- Generate Table code
- Generate mock response
- Automate the publish and changeLog generation.
- Refactor with vue3 and typescript.
- Generate formData
- Add tests
- Improve build config