Pergunta de entrevista da empresa IBM

How API works and does it replace IDOC faciility?