Question d’entretien chez Spinnr Tech

Can you explain the difference between REST and SOAP APIs? How would you choose them?