@detail_route(url_path='<STR_LIT>'.format(COURSE_KEY_URL_PATTERN))<EOL><INDENT>@permission_required(<EOL>'<STR_LIT>',<EOL>fn=lambda request, pk, course_key: get_enterprise_customer_from_catalog_id(pk))<EOL>def course_detail(self, request, pk, course_key):  <DEDENT>
enterprise_customer_catalog = self.get_object()<EOL>course = enterprise_customer_catalog.get_course(course_key)<EOL>if not course:<EOL><INDENT>raise Http404<EOL><DEDENT>context = self.get_serializer_context()<EOL>context['<STR_LIT>'] = enterprise_customer_catalog<EOL>serializer = serializers.CourseDetailSerializer(course, context=context)<EOL>return Response(serializer.data)<EOL>
Return the metadata for the specified course.

The course needs to be included in the specified EnterpriseCustomerCatalog
in order for metadata to be returned from this endpoint.