Giter Club home page Giter Club logo

hornibills's Introduction

hornibills

##什么是犀鸟?

犀鸟是一个在线文档系统,致力于快速解决团队内部接口文档的编写和沉淀。

力求用最简单的方式部署您的文档系统,拥有最方便的文档管理。

一些想法借鉴了iodocs

##长啥样?

示例

因为用的是sae,所以不支持本地修改,但是看看样子足够了。

##犀鸟如何部署?

犀鸟采用bootstrap+angularjs+php开发。

获取源文件,部署到您支持php的webserver的可访问目录即可。

enjoy!

##常见问题 ###如何解决版本问题?

每次修改动作触发后,都会在**data/**目录下留下修改文件的一个快照。

例如:data/type[2013-12-29]1388326575.json,适当人工就可以操作一次回滚,或者diff下修改。

###我有很多现成的接口在word里,我如何快速弄到犀鸟里?

犀鸟没有db,所有接口在data/各种.json里维护。

data/type.json是一个特殊的json,里面存储的是您接口的分类,格式简单

[{"name":"notes模块文档","href":"notes","description":"123"},...]

其中href是当前分类的类似主键的东西。

那么data/notes.json对应此分类,维护此分类下的所有接口,样例如下:

[
    {
        "name": "一个接口的名字",
        "url": "该接口的url",
        "method": "POST",
        "description": " 接口的描述",
        "params": [
            {
                "Name": "param_1_name",
                "Required": "Y",
                "Default": "",
                "Type": "string",
                "Description": "Description of the first parameter."
            },
            {
                "Name": "userId",
                "Required": "Y",
                "Default": "",
                "Type": "string",
                "Description": "The userId parameter that is in the URI."
            }
        ],
        "response": [
            {
                "Name": "param_1_name",
                "Required": "Y",
                "Default": "",
                "Type": "string",
                "Description": "Description of the first parameter."
            },
            {
                "Name": "userId",
                "Required": "Y",
                "Default": "",
                "Type": "string",
                "Description": "The userId parameter that is in the URI."
            }
        ],
        "demo": "<?php \n\r var_dump(123);"
    }
]

聪明的你一定已经看明白了,你可以自行写一个程序,跑下你之前的接口格式,跑成这样的json文件就可以了。

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.