'Builds course detail uri'

def get_uri(self, course):

    request = self.context['request']
    return request.build_absolute_uri(reverse('course_structure_api:v0:detail', kwargs={'course_id': course.id}))
