我Swagger UI
的API文檔,我用同樣的方式就像在official specification訪問它,我用下一個URL:播放揚鞭UI網址別名
http://localhost:9000/docs/swagger-ui/index.html?url=/assets/swagger.json
但我想用http://localhost:9000/docs/
代替。我不會想用WS
委派,我想用單一的線routes
,像這樣:
GET /docs controllers.Assets.at(path:String="/public/lib/swagger-ui", file:String="index.html?url=/assets/swagger.json")
或者
GET /docs controllers.Assets.at(path:String="/public/lib/swagger-ui", file:String="index.html")
和http://localhost:9000/docs?url=/assets/swagger.json
什麼shold我改變,因此這行得通?
我的'swagger.json'從端點獲得/assets/swagger.json – pacman
我想用玩遊戲來解決它,我不需要本地的swagger-api – pacman
@pacman,明白了,但是什麼是使用玩遊戲的方式解決問題的好處,而不是本地的swagger-api? –