Pregunta de entrevista de Cashfree

How would you design an automation framework for testing a given API?