options method in rest api example