API - Basic API calls

I thought I'd put some extra code if even a single course did not exist. But later, I thought that returning an empty list was better. Will remove the comment.