Adding a RESTful API