Files
cloudpods/docs
yunion-ci-robot 94c713c4fb Merge pull request #1978 from swordqiu/hotfix/qj-fix-docs-syntax-error-20190729
fix: post domain quota missing domain_id, post bucket missing resposne body
2019-07-30 16:50:32 +08:00
..
2019-07-25 13:51:24 +08:00
2019-07-29 20:41:00 +08:00
2019-07-24 16:10:06 +08:00
2019-07-29 20:41:00 +08:00
2019-06-29 10:41:38 +08:00
2019-07-24 21:29:56 +08:00
2019-06-29 10:41:38 +08:00
2019-07-24 16:10:06 +08:00
2019-07-26 03:13:44 +00:00
2019-06-11 23:51:24 +08:00
2019-07-24 16:10:06 +08:00
2019-07-24 16:10:06 +08:00
2019-07-24 16:10:06 +08:00
2019-07-02 15:07:28 +08:00
2019-07-24 16:10:06 +08:00
2019-07-27 17:58:41 +08:00
2019-07-27 17:58:41 +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 -d -p 80:8080 swaggerapi/swagger-ui

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

    python server.py

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