Code Monkey home page Code Monkey logo

apidoc2yapi's Introduction

apidoc2yapi

该代码是参考zhangchun617 的代码修 改而成,用于apidoc生成的json文件转化为yapi可导入的json文件,只支持json类型的请求和相应参数, 可以解析个各种类型的参数和各种嵌套的参数,如果有bug,希望能够指出。

我公司的思路是git提交的时候自动运行apidoc检查和提交到yapi上的检查来判断注释是否规范, 同时每次提交都会更新yapi中的api文档,达到只需要在代码中修改apidoc的注释,同步更新yapi。 缺点:接口中的注释会很多,不支持apidoc的不同版本的api。

支持转化为jsonschema请求格式检查转换,大致转换,需要自行修改 ​帮助文档:help.md

​Email:[email protected]

apidoc2yapi's People

Contributors

littleboyfury avatar longbai 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.