add curl example in api