Cloudbeds Interview Question

How would you test a simple API endpoint?