swagger-api / swagger-play

Apache License 2.0
330 stars 181 forks source link

Methods named 'Status' result in controller annotations being ignored. #102

Open krx252525 opened 8 years ago

krx252525 commented 8 years ago

Naming a method status results in the @ApiOperation and @ApiResponses annotations being ignored:

This configuration in my api.routes along with the corresponding method in my controller doesn't work:

GET           /status                      com.my.org.api.controllers.ApiController.status

Whereas this configuration in my api.routes along with the corresponding method in my controller does work:

GET           /status                      com.my.org.api.controllers.ApiController.version

Unsure if I've missed something and this is a case of WAD - but it caused me a headache!

Let me know if I can provide you with further context.