'Read enrollment information for a particular course.
HTTP Endpoint for retrieving course level enrollment information.
Args:
request (Request): To get current course enrollment information, a GET request will return
information for the specified course.
course_id (str): URI element specifying the course location. Enrollment information will be
returned.
Return:
A JSON serialized representation of the course enrollment details.'

def get(self, request, course_id=None):

    try:
        return Response(api.get_course_enrollment_details(course_id, bool(request.GET.get('include_expired', ''))))
    except CourseNotFoundError:
        return Response(status=status.HTTP_400_BAD_REQUEST, data={'message': u"No    course    found    for    course    ID    '{course_id}'".format(course_id=course_id)})
