我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? –