Heidi Health interview question

Given certain endpoints and parameters, construct an API using Python.