@method_decorator(enterprise_customer_required)<EOL><INDENT>@detail_route()<EOL>def courses(self, request, enterprise_customer, pk=None):  <DEDENT>
catalog_api = CourseCatalogApiClient(request.user, enterprise_customer.site)<EOL>courses = catalog_api.get_paginated_catalog_courses(pk, request.GET)<EOL>self.ensure_data_exists(<EOL>request,<EOL>courses,<EOL>error_message=(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>".format(endpoint=request.get_full_path())<EOL>)<EOL>)<EOL>serializer = serializers.EnterpriseCatalogCoursesReadOnlySerializer(courses)<EOL>serializer.update_enterprise_courses(enterprise_customer, catalog_id=pk)<EOL>return get_paginated_response(serializer.data, request)<EOL>
Retrieve the list of courses contained within this catalog.

Only courses with active course runs are returned. A course run is considered active if it is currently
open for enrollment, or will open in the future.