Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
xianshenglu committed Nov 10, 2020
1 parent ecd3e05 commit 3ca4324
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# yapi-to-code

A chrome extension to generate code for [yApi](https://github.com/YMFE/yapi).

## Usage

![](./images/getApiCode.png)

![](./images/optionsPage.png)

## Install

~~install by [chrome extension]()~~

Or

1. clone the project

```bash
git clone https://github.com/xianshenglu/yapi-to-code.git
```

2. Click the `Load unpacked` button in `chrome:https://extensions/` page.

![](./images/loadUnpacked.png)

3. Click the `detail` button

![](./images/extensionPage.png)

1. Scroll to bottom and click the `Extension options`

![](./images/detailPage.png)

1. Configure the required fields Or you can configure it later after you get the generated code.
2. Go back to your yApi site and reload!
3. Operate like [Usage](#usage) and go back to step 5 if you want.
Binary file added images/detailPage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/extensionPage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/getApiCode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/loadUnpacked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/optionsPage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3ca4324

Please sign in to comment.