finished adding RESTful API endpoints. There is a bug in .delete