PMG Digital Company interview question

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