North interview question

Write a function to consume a REST Api endpoint