# Path: testproject/common/views.py
# class ThingModelViewSet(ModelViewSet):
#     serializer_class = ThingSerializer
#     queryset = CassandraThing.objects.all()
#     permission_classes = ()
# 
# class ThingMultiplePKListAPIView(ListAPIView):
#     queryset = CassandraThingMultiplePK.objects.all()
#     serializer_class = ThingMultiplePKSerializer
#     permission_classes = ()
# 
# class ThingMultiplePKListCreateAPIView(ListCreateAPIView):
#     queryset = CassandraThingMultiplePK.objects.all()
#     serializer_class = ThingMultiplePKSerializer
#     permission_classes = ()
# 
# class ThingMultiplePKViewSet(ViewSet):
#     def list(self, request):
#         queryset = CassandraThingMultiplePK.objects.all()
#         serializer = ThingMultiplePKSerializer(queryset, many=True)
#         return Response(serializer.data)


from django.urls import include, re_path
from rest_framework import routers
from .views import (
    ThingModelViewSet,
    ThingMultiplePKListAPIView,
    ThingMultiplePKListCreateAPIView,
    ThingMultiplePKViewSet,
)


router = routers.DefaultRouter()
router.register(r"thing-modelviewset", ThingModelViewSet)

urlpatterns = [
    re_path(
        r"^thing-viewset/$",

# Path: testproject/common/views.py
# class ThingModelViewSet(ModelViewSet):
#     serializer_class = ThingSerializer
#     queryset = CassandraThing.objects.all()
#     permission_classes = ()
# 
# class ThingMultiplePKListAPIView(ListAPIView):
#     queryset = CassandraThingMultiplePK.objects.all()
#     serializer_class = ThingMultiplePKSerializer
#     permission_classes = ()
# 
# class ThingMultiplePKListCreateAPIView(ListCreateAPIView):
#     queryset = CassandraThingMultiplePK.objects.all()
#     serializer_class = ThingMultiplePKSerializer
#     permission_classes = ()
# 
# class ThingMultiplePKViewSet(ViewSet):
#     def list(self, request):
#         queryset = CassandraThingMultiplePK.objects.all()
#         serializer = ThingMultiplePKSerializer(queryset, many=True)
#         return Response(serializer.data)


# Path: testproject/common/urls.py
from django.urls import include, re_path
from rest_framework import routers
from .views import (
    ThingModelViewSet,
    ThingMultiplePKListAPIView,
    ThingMultiplePKListCreateAPIView,
    ThingMultiplePKViewSet,
)



router = routers.DefaultRouter()
router.register(r"thing-modelviewset", ThingModelViewSet)

urlpatterns = [
    re_path(
        r"^thing-viewset/$",

        ThingMultiplePKViewSet.as_view({"get": "list"}),