Cognizant interview question

How is api calls are made?