Giter Site home page Giter Site logo

yapi-airship's Introduction

安装说明:


1、git clone 或者下载项目zip包解压

2、打开chrome扩展程序页面或直接在地址栏输入chrome://extensions并回车。

3、选中"开发者模式",点击"加载已解压的扩展程序"按钮,选择 yapi-airship 项目文件夹。

使用说明


1、可以通过点击设置参数按钮设置相应的actionName,类型命名都会已这个作为基准

2、点击生成代码按钮就可以生成相应的代码并复制到粘贴板上

功能描述


这是一款chrome插件,作用于公司yapi平台,通过爬取yapi文档数据,自动生成对应的前端api代码,并包含相应的ts类型约束,目前只支持M的C端项目,可后续进行拓展。

  • 支持复杂的对象类型
  • 支持枚举类型

Todo项

  • 代码用eslint 自动修正
  • 解决一个api返回值中类型重名的问题
  • 其他待补充...

yapi-airship's People

Stargazers

 avatar 眼圈发黑 avatar  avatar  avatar zhoufeifan avatar

Watchers

zhoufeifan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.