美文网首页
API文档工具Swagger

API文档工具Swagger

作者: 春泥村雨 | 来源:发表于2019-03-27 20:05 被阅读0次

Swagger 是一款RESTFUL接口的、基于YAML、JSON语言的文档在线自动生成、代码自动生成的工具。

1. 在线编辑器

https://editor.swagger.io/

2. 本地搭建编辑器

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

# node 设置代理
npm config set proxy http://10.195.225.79:808
npm config set https-proxy http://10.195.225.79:808
# 启动,通过 http://127.0.0.1:8080 查看
npm install -g http-server
# 启动,通过 http://127.0.0.1:8080 可访问编辑器
cd D:\ProgramFiles\swagger-editor-master
http-server

参考链接:
https://www.imooc.com/article/71842
https://stackoverflow.com/questions/46358056/npm-err-code-econnrefused

相关文章

网友评论

      本文标题:API文档工具Swagger

      本文链接:https://www.haomeiwen.com/subject/hvrtbqtx.html