Pregunta de entrevista de Fidelity Investments

How would you set up a REST API for a library?