Files
cloudpods/docs
Qiu Jian f34c8255f2 fix: 1. token add projects when no project specified 2.
IVirtualResourceManager add GetResourceCount() method 3. domainId not
initialized occasionally
2019-07-03 22:38:33 +08:00
..
2019-06-29 10:41:38 +08:00
2019-06-29 15:22:39 +08:00
2019-06-29 15:22:39 +08:00
2019-06-29 10:41:38 +08:00
2019-06-11 23:51:24 +08:00
2019-07-02 15:07:28 +08:00
2019-07-02 15:07:28 +08:00
2019-07-02 15:07:28 +08:00
2019-07-02 15:07:28 +08:00
2019-06-29 15:22:39 +08:00
2019-06-29 15:22:39 +08:00

swagger.yaml

使用swagger编辑器

docker run -d -p 8081:8080 swaggerapi/swagger-editor

swagger文档,https://swagger.io/docs/specification/2-0/basic-structure/

编辑测试:

  1. 首先启动swagger-ui

    sudo docker pull swaggerapi/swagger-ui sudo docker run -p 80:8080 swaggerapi/swagger-ui

  2. 用python启动本地的http server,这是允许CORS的SimpleHTTPServer,监听在8000端口

    python server.py

  3. 用浏览器打开swagger-ui的URL:http://<swagger_ui_host>?url=http://<simple_http_server_host>:8000/index.yaml