Genetec Interview Question

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