rest server edit and delete function