Files
cloudpods/docs
2019-08-06 12:10:51 +00:00
..
2019-08-01 18:09:41 +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-08-01 18:09:41 +08:00
2019-06-29 10:41:38 +08:00
2019-07-24 16:10:06 +08:00
2019-08-02 17:08:26 +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