Skip to content
forked from FungLi/apidoc_py

使用flask框架扩展apidoc,支持apidoc文档的在线浏览、远程构建和自动构建等功能

Notifications You must be signed in to change notification settings

Ostaer/apidoc_py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apidoc_py

使用flask扩展开发apidoc,支持api文档的在线浏览、远程构建和自动构建等功能

依赖环境

Python > 3.x.x  
    flask
    gunicorn   
nodejs > 8.x.x  
    apidoc
git

1. 运行方式

需要自定义自己的配置

apidoc.json

{
  "name": "Flask REST API",
  "version": "1.0.0",
  "description": "A Flask REST API example",
  "title": "A Flask REST API example",
  "url" : "http://127.0.0.1:5000",
  "sampleUrl" : "http://127.0.0.1:5000"
}

src/env.conf
本地项目存储路径

执行配置命令

python manage.py config

启动命令

gunicorn src.app:app -c src/gunicorn_config.py

2. 项目目录结构:

├── config
│   ├── nginx
│   │   └── conf.d
│   │       └── apidoc_py.conf
├── logs
│   └── xxxx.log
├── README.md
├── apidoc.json
├── manage.py
└── src
    ├── app.py
    ├── build.py
    ├── gunicorn_config.py
    ├── env.conf # code local storage location
    ├── services
    │   ├── BuildService.py
    │   ├── ConfigService.py
    │   ├── IndexService.py
    │   ├── CodeService.py    
    │   ├── exec_command.py    
    │   ├── loggingcus.py    
    │   └── __init__.py
    ├── static
    │   ├── apidocs
    │   │   └── +AddProject
    │   ├── css
    │   │   └── index.css
    │   └── js
    │       ├── index.js
    │       └── lib
    │           └── jquery-1.9.1.min.js
    └── templates
        └── index.html

3. 变更部分

修复部分bug

去除一些功能

增加从git拉取代码生成文档功能

Example Screenshot

About

使用flask框架扩展apidoc,支持apidoc文档的在线浏览、远程构建和自动构建等功能

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 53.2%
  • HTML 25.2%
  • Python 13.4%
  • CSS 8.2%