Adding more functionality to the REST API