# Path: cyclosible/Cyclosible/views.py
# class GroupViewSet(viewsets.ModelViewSet):
#     """
#     API endpoint that allows groups to be viewed or edited.
#     """
#     queryset = Group.objects.all()
#     serializer_class = GroupSerializer
#     lookup_field = 'name'
# 
# class UserViewSet(viewsets.ModelViewSet):
#     """
#     API endpoint that allows users to be viewed or edited.
#     """
#     queryset = User.objects.all()
#     serializer_class = UserSerializer
#     lookup_field = 'username'
# 
# Path: cyclosible/Cyclosible/routers.py
# class ContainerRouter(DefaultRouter):
#     def register_router(self, router):
# 
# Path: cyclosible/playbook/urls.py



from django.conf.urls import include, url
from django.contrib import admin
from rest_framework.authtoken import views as authtoken_views
from .views import (GroupViewSet, UserViewSet)
from .routers import main_router
from cyclosible.playbook import urls as playbook_urls
"""Cyclosible URL Configuration
"""
assert playbook_urls

main_router.register(r'groups', GroupViewSet)
main_router.register(r'users', UserViewSet)

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),

# Path: cyclosible/Cyclosible/views.py
# class GroupViewSet(viewsets.ModelViewSet):
#     """
#     API endpoint that allows groups to be viewed or edited.
#     """
#     queryset = Group.objects.all()
#     serializer_class = GroupSerializer
#     lookup_field = 'name'
# 
# class UserViewSet(viewsets.ModelViewSet):
#     """
#     API endpoint that allows users to be viewed or edited.
#     """
#     queryset = User.objects.all()
#     serializer_class = UserSerializer
#     lookup_field = 'username'
# 
# Path: cyclosible/Cyclosible/routers.py
# class ContainerRouter(DefaultRouter):
#     def register_router(self, router):
# 
# Path: cyclosible/playbook/urls.py



# Path: cyclosible/Cyclosible/urls.py
from django.conf.urls import include, url
from django.contrib import admin
from rest_framework.authtoken import views as authtoken_views
from .views import (GroupViewSet, UserViewSet)
from .routers import main_router
from cyclosible.playbook import urls as playbook_urls

"""Cyclosible URL Configuration
"""
assert playbook_urls

main_router.register(r'groups', GroupViewSet)
main_router.register(r'users', UserViewSet)

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),

    url(r'^api/v1/', include(main_router.urls)),