Genetec interview question

What is a REST API and how would you implement one properly?