Skip to content

This repository showcases an issue with swagger-api/swagger-play for Play 2.6

License

Notifications You must be signed in to change notification settings

mpgirro/play2.6-swagger-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play2.6-swagger-issue

This projects is a reproducible example for issue #185 of swagger-api/swagger-play with Play 2.6. It builds upon the playframework/play-scala-rest-api-example (2.6.x branch) projects, and adds the following setup configuration (also described in the issue):

  • Dependency in build.sbt: "io.swagger" %% "swagger-play2" % "1.6.0"
  • Swagger Module enabled in application.conf: play.modules.enabled += "play.modules.swagger.SwaggerModule"
  • swagger-ui-dist resources placed under /public/swagger/
  • Swagger routes added to conf/routes:
GET   /swagger.json     controllers.ApiHelpController.getResources
GET   /docs/            controllers.Assets.at(path="/public/swagger",file="index.html")
GET   /docs/*file       controllers.Assets.at(path="/public/swagger",file)

Run this project to experience the error:

sbt clean compile runProd

About

This repository showcases an issue with swagger-api/swagger-play for Play 2.6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published