Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring Swagger with Play/Java-framework-2.5

I am trying to configure Swagger with my Play-2.5 project.

I followed this tutorial and it worked, but only for the older version of Play and not working with Play-2.5. As the project has migrated into Play-2.5, we had to remove the swagger configuration.

Firstly, the issue seemed to be with static controller vs non static controller in Play-2.5, but I ended up with proving myself wrong. I am facing this error

      type ApiHelpController is not a member of package controllers 
      GET         /api-docs                controllers.ApiHelpController.getResources

If any one knows any link for Swagger configuration with Play-2.5 for Java, please guide.

PS: there are tutorials available for Scala not for java.

like image 903
M-sAnNan Avatar asked Apr 18 '16 12:04

M-sAnNan


1 Answers

Try this repo:

https://github.com/CreditCardsCom/swagger-play

I created this as a temporary workaround until we get support for Play 2.5 in the official swagger-play repo.

like image 141
kenske Avatar answered Nov 07 '22 07:11

kenske