Spinnr Tech interview question

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