Cognizant Interview Question

What is an API? difference between REST and SOAP