Add rest api for courses