implement GET with id and PUT with id