Setup rest api example