API - Basic API calls

If you request an id of the course which you do not teach you should get 404 as well. The rule of thumb - if your parameter exists in URL then for non-existing rows you will throw 404. It is only if the parameter exists in query string but there are no matching row s in DB then you return an empty array