Fidelity Investments Interview Question

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