put method in rest api example