WD Interview Question

How do you design an API?