Add documentation for generic REST controllers.

Fixes bug 1386837

Change-Id: I9cf30c7d55026d2364d7add3f7a9ca96b3348d31
Merge "Add documentation for generic REST controllers."