Giter Site home page Giter Site logo

chatswaggertype's Introduction

ChatSwaggerType

Input the swagger json, select the schema path, then generate the type.

watch Demo

Usage

提前安装好 Chrome 扩展

  1. 点击某一条 GET API
  2. 点击 ChatSwaggerType 扩展图标
  3. ChatSwaggerType 会识别当前页面的接口信息,并默认选中之前点击的那一条接口
  4. 选择语言,输入 API KEY
  5. 点击生成,或者点击“copy the prompt”粘贴至 ChatGPT 对话框。

Tech

  1. 根据 API PathSwagger Schema JSON 中提取类型定义信息
  2. 根据用户选择生成 Prompt (in src/utils/generate.ts
  3. 使用 ChatGPT API 生成类型定义代码(or copy the Prompt)

chatswaggertype's People

Contributors

taterboom avatar

Stargazers

 avatar

Watchers

 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.