Adding a REST API to expose data