# Path: search/web/views/api2.py
# def index(request):
#     def get_queryset(self):
#     def get_queryset(self, *args, **kwargs):
#     def get_queryset(self, *args, **kwargs):
#     def get_queryset(self):
#     def serialize_tree(self, queryset, depth=0, max_depth=-1):
#     def list(self, request, **kwargs):
#     def get_queryset(self):
# class SourceList(generics.ListAPIView):
# class SourceDetail(generics.RetrieveAPIView):
# class SourceCourseList(generics.ListAPIView):
# class CourseDetail(generics.RetrieveUpdateAPIView):
# class CategoryList(generics.ListAPIView):
# class FlatCategoryList(generics.ListAPIView):


from django.conf.urls import patterns, url
from .views import api2

urlpatterns = patterns('',
	url(r'^sources/$', api2.SourceList.as_view(), name='sources'),
    url(r'^sources/(?P<pk>\d+)/$', api2.SourceDetail.as_view(), name='source-detail'),
    url(r'^sources/(?P<source_id>\d+)/courses/$',
            api2.SourceCourseList.as_view(), name='source-course-list'),
    url(r'^courses/(?P<pk>\d+)/$',
            api2.CourseDetail.as_view(), name='course-detail'),

# Path: search/web/views/api2.py
# def index(request):
#     def get_queryset(self):
#     def get_queryset(self, *args, **kwargs):
#     def get_queryset(self, *args, **kwargs):
#     def get_queryset(self):
#     def serialize_tree(self, queryset, depth=0, max_depth=-1):
#     def list(self, request, **kwargs):
#     def get_queryset(self):
# class SourceList(generics.ListAPIView):
# class SourceDetail(generics.RetrieveAPIView):
# class SourceCourseList(generics.ListAPIView):
# class CourseDetail(generics.RetrieveUpdateAPIView):
# class CategoryList(generics.ListAPIView):
# class FlatCategoryList(generics.ListAPIView):


# Path: search/web/urls_api2.py
from django.conf.urls import patterns, url
from .views import api2


urlpatterns = patterns('',
	url(r'^sources/$', api2.SourceList.as_view(), name='sources'),
    url(r'^sources/(?P<pk>\d+)/$', api2.SourceDetail.as_view(), name='source-detail'),
    url(r'^sources/(?P<source_id>\d+)/courses/$',
            api2.SourceCourseList.as_view(), name='source-course-list'),
    url(r'^courses/(?P<pk>\d+)/$',
            api2.CourseDetail.as_view(), name='course-detail'),

    url(r'^categories/$',