Implemented restPUT, restGET and resDELETE functions