Add api example with curl