在Ubuntu系统中查看Swagger文档,通常有以下几种方法:
git clone https://github.com/swagger-api/swagger-ui.git
cd swagger-ui
http-server
,请运行:npm install -g http-server
http-server
,请运行:npx http-server
http://localhost:8080
如果你的Swagger文档是通过Nginx代理提供的,确保Nginx配置正确,并且访问用户具有相应的权限。
希望这些方法能帮助你找到并使用Swagger文档。