Added an endpoint for retrieving the registry.

Review: https://reviews.apache.org/r/19657