Add api example using curl.