Files
cloudpods/docs
..
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-29 20:41:00 +08:00
2019-09-11 14:01:36 +08:00
2019-08-22 20:56:24 +08:00
2019-08-02 17:08:26 +08:00
2019-09-02 15:35:24 +08:00
2019-09-16 14:50:29 +08:00
2019-09-16 14:50:29 +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