DevRev interview question

How do REST APIs work?