REST endpoint for teacher