Skip to content

xianshenglu/yapi-to-code

Repository files navigation

yapi-to-code

Build

A chrome extension to generate code for yApi.

Usage

Install

install by chrome extension

Or

  1. Download the release file dist.zip
git clone https://github.com/xianshenglu/yapi-to-code.git
  1. Unzip the dist.zip file.

  2. Click the Load unpacked button in chrome:https://extensions/ page and choose dist folder.

  1. Click the detail button

  1. Scroll to bottom and click the Extension options

  1. Configure the required fields Or you can configure it later after you get the generated code. You must re-configure API 地址 at least.

  2. Go back to your yApi site and reload!

  3. Operate like Usage and go back to step 5 if you want.

Todo

  • 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