Cloudbeds Interview Question

Write the endpoints based on the given requirements