Adding the api example to the readme