PMG Digital Company Interview Question

How would you build a REST api for [insert tech].