swagger-api / swagger-play

Apache License 2.0
330 stars 180 forks source link

Not searching submodule route files for controllers with @Api annotation #47

Open lukaszun opened 8 years ago

lukaszun commented 8 years ago

Using swagger-play v 1.5.0, when you add route in application main route file than swagger takes it into account but when you put route into modules route file then it is omitted. Any ideas?

josephearl commented 8 years ago

This should work if your modules route file is included into the main routes file.

lukaszun commented 8 years ago

How should I include modules routes file in main route file? Currently my main routes files looks like following:

Swagger - Root Resources Listing

GET /api-docs @controllers.ApiHelpController.getResources

School

-> /school school.Routes

By including do you mean that i should paste all my routes from school module to main routes file?