Phreesia interview question

How would you test this api?