Files
2019-11-12 20:02:21 +08:00
..
2019-11-01 09:52:15 +08:00
2019-10-24 11:43:10 +08:00
2019-11-01 09:52:15 +08:00
2019-10-24 11:43:10 +08:00
2019-10-24 11:43:10 +08:00
2019-11-01 09:52:15 +08:00
2019-11-01 09:52:15 +08:00
2019-11-01 09:52:15 +08:00
2019-11-01 09:52:15 +08:00
2019-06-29 10:41:38 +08:00
2019-11-01 09:52:15 +08:00
2019-10-08 10:40:03 +08:00
2019-08-02 17:12:30 +08:00
2019-11-01 09:52:15 +08:00
fix
2019-10-14 11:33:18 +08:00
2019-11-01 09:52:15 +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的URLhttp://<swagger_ui_host>?url=http://<simple_http_server_host>:8000/index.yaml