jakehschwartz/finatra-swagger

Cleaner interface

jakehschwartz opened this issue · 4 comments

Clean up the interface a bit:

  • Change SwaggerController to DocsController
  • Move controllers to controller package
  • More

I don't like the fact that there are 2 controllers to import, will merge WebjarsController into DocsController

Nevermind, I'll leave this for now

Changed my mind again. The main bonuses are ease of use (only having 1 controller) and more Finatra like (having Swagger be managed through DI)

This is cleaner than it was, but it would be nice not have to inject the Swagger object in all the controllers just so it can be assigned to an implicit.