post method in rest api example