restful api example