implement PUT, GET, and DELETE REST methods