1. github上下载好Swagger-ui和Swagger-edit文件

https://github.com/swagger-api/swagger-ui

https://github.com/swagger-api/swagger-editor

 

2. 在本地解压

 

3. 下载好node以及npm,在cmd中确认下载成功

 

 

4. 进入node下载目录,输入:npm install -g http-server 

 

5. 在环境变量path中增加这两项(新安装的http-server在node_cache目录中)

 

 

6. 进入Swagger-ui页面

 

 浏览器搜索:http://127.0.0.1:8080/dist/index.html

 

7. 进入Swagger-edit页面

 

 

 浏览器输入:

posted on 2020-05-31 22:40  pskcoco  阅读(4847)  评论(0编辑  收藏  举报