Infoglen interview question

explain REST and SOAP api to me