dropwizard/dropwizard — pull request #643 by arteam (2014-07-05 20:09:20+00:00)
Title: Access to endpoints information from DropwizardResourceConfig

When Dropwizard starts, it prints into a log very useful information about configured endpoints in the application. It gives some basic form of a documentation about API.
I believe, it would be very convenient to access this information not just from the log, but from the application code too. So we can print it, say, as an HTML page.

![screenshot from 2014-07-05 23 46 05](https://cloud.githubusercontent.com/assets/1717632/3487443/21e06e90-047e-11e4-9d5c-7e095ce56903.png)
I know there special tools for that goal like Swagger, but sometimes minimal information is quite enough.

To achieve this goal, I divided logging and constructing a message in the method *logEndpoints*, set a new name for the method and made it public (it doesn't expose any internal state, so from the security point of view it's fine, I believe).
I didn't make *getResources* and *getProviders* public because I don't see a practical value for that.