Pregunta de entrevista de IBM

How API works and does it replace IDOC faciility?