api to get teacher courses and students