Cloudbeds interview question

How would you test a simple API endpoint?