GE interview question

how would you design a restful api