Payroc Interview Question

How would you design a Restful api