跳转到主要内容

一个使OpenStack API自动生成文档的项目。

项目描述

一个使OpenStack API自动生成文档的项目。

功能

  • 将WADL源代码迁移到Swagger文件

  • 提供在网页浏览器中显示RST加上Swagger JSON文件的功能

开发

首先运行迁移脚本来将wadl内容迁移到初始状态

./migrate.sh

此脚本将检出当前版本的文档。

要运行Web服务器,请使用

./run_server.sh

一个基于Pecan的Web服务器将监听 http://127.0.0.1:8080

AngularJS

要开发AngularJS组件,使用Grunt Web服务器是最简单的

grunt

您仍然需要运行Fairy-Slipper Web服务器,但如果您访问端口 http://127.0.0.1:9000,这将启用自动重新加载

目录结构(未来)

当前文档输出布局

api-doc/ -- the root of the documentation
api-doc/index.json  -- the index file that lists all the files that are included in the API doc.
api-doc/<service>/<version>.rst
api-doc/<service>/<version>/<request_schema>.json
api-doc/<service>/<version>/<response_schema>_<status_code>.json
api-doc/<service>/<version>/examples/<request>_req.json
api-doc/<service>/<version>/examples/<response>_resp_<status_code>.json
conversion_files_valid/<service-version>.json -- valid Swagger files

其他Swagger UI

来自 https://github.com/swagger-api/swagger-spec/wiki/Sites-and-Services

其他API文档工具

其他客户端

其他有用工具

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

fairy-slipper-0.2.0.tar.gz (88.2 kB 查看哈希值)

上传时间

构建分布

fairy_slipper-0.2.0-py2-none-any.whl (73.1 kB 查看哈希值)

上传时间 Python 2

由以下机构支持