1 Star 1 Fork 750

seekArt / apiManager

forked from 阿凉 / xiaoyaoji 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

api接口管理页面

author:zhoujingjie leunpha@gmail.com

文件说明

  • api.json api接口的json文件
  • index.html 主页
  • 预览该文件需要放到本地服务器中或者使用ie9以上浏览器打开
  • 该系统不兼容ie8及以下浏览器

api.json 格式说明

[
    {
        "name":"接口名称",
        "method":"接口方法: get,post,head,put,delete...",
        "category":"接口分类:用户,系统...",
        "url":"接口地址: /api.json",
        "desc":"接口说明",
        "target":"form表单目标,默认空,如果是上传文件则需要设置成_blank或者其他",
        "args":[
            {
                "name":"参数名称",
                "required":"是否必须 true/false",
                "defaultValue":"默认值",
                "desc":"参数描述",
                "type":"参数类型,默认text,如果上传文件则设置成file"
            },{...}
        ],
        "returnValues":[
            {
                "name":"返回值名称",
                "desc":"返回值描述",
                "sub":[
                    {
                        "name":"codeToken",
                        "desc":"验证码token"
                    },{....}
                ]
            },
            {
                "name":"返回值名称",
                "desc":"返回值描述",
                "sub":{
                    "key" :[],
                    "key":{}
                }
            },
            {
                "name":"返回的json数据名称",
                "desc":"数据描述"
           }
        ]
    }
]

returnValues中,如果有子元素。则放置在sub 中 输入图片说明

The MIT License (MIT) Copyright (c) 2015 凉粉 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

纯前端的 api接口管理页面。不用数据库,不用服务器。效果可以看代码演示。 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/seekart/apiManager.git
git@gitee.com:seekart/apiManager.git
seekart
apiManager
apiManager
master

搜索帮助