Created courses query by instructor function for iOS requests