UBS interview question

what is REST api, and its methods