Pregunta de entrevista de CardinalCommerce

(from what I think I could understand) How would you implement an API? How would you handle HTTP requests? Simple coding question.