Coder Social home page Coder Social logo

apidoc's Introduction

apidoc Build Status

apidoc是一个简单的RESTful api文档生成工具,它从代码注释中提取特定格式的内容,生成文档。 目前支持c系列注释风格的语言和ruby。 具体文档可参考:http://apidoc.site/

/*
 @api get /users 获取所有的用户信息
 @apiGroup users
 @apiQuery page int 显示第几页的内容
 @apiQuery size int 每页显示的数量
 @apiSuccess 200 ok
 @apiParam count int 符合条件的所有用户数量
 @apiParam users array 用户列表。
 @apiExample json
 {
     "count": 500,
     "users": [
        {"id":1, "username": "admin1", "name": "管理员2"},
        {"id":2, "username": "admin2", "name": "管理员2"}
     ],
 }
 @apiExmaple xml
 <users count="500">
     <user id="1" username="admin1" name="管理员1" />
     <user id="2" username="admin2" name="管理员2" />
 </users>
 */

安装

go get github.com/caixw/apidoc

版权

本项目采用MIT开源授权许可证,完整的授权说明可在LICENSE文件中找到。

apidoc's People

Contributors

caixw avatar

Watchers

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