Skip to content

一个在idea、webstorm等intellij平台使用的yapi转json/api代码的插件

Notifications You must be signed in to change notification settings

cong1223/intellij-plugin-yapi2ts

Repository files navigation

intellij-plugin-yapi2ts


description:

yapi is a tool to generate interface data ts type with one click according to the detailed address of the interface document

描述:

yapi是根据接口文档详情地址一键生成接口数据ts类型的工具

Features:

  • Generate ts type code according to the link address

功能:

  • 根据链接地址生成ts类型代码

Todo:

  • Generate axios business request code according to the link address

待办:

  • 根据链接地址生成axios业务请求代码

Template ToDo list

  • 根据yapi文档接口详情链接一键生成ts类型代码
  • 一键生成业务请求代码

安装

Using IDE built-in plugin system:

Settings/Preferences > Plugins > Marketplace > Search for "yapi2ts" > Install Plugin

使用前注意

!!!务必先配置项目token: settings -> tools -> yapi2ts

使用

  1. 配置yapi文档项目的token
  2. 在需要生成类型文件的js/ts/jsx/tsx文件中打开tools -> yapi2ts 或者 右键文件打开菜单,选中yapi2ts打开工具弹窗
  3. 输入接口详情链接地址,选择生成请求体类型还是返回数据类型 [template]: https://github.com/JetBrains/intellij-platform-plugin-template

About

一个在idea、webstorm等intellij平台使用的yapi转json/api代码的插件

Resources

Stars

Watchers

Forks

Packages

No packages published