Payroc interview question

How would you design a Restful api