from rest_framework import viewsets
from ces_fall_rest_api.models.responses import Responses
from ces_fall_rest_api.serializers.responses_serializer import ResponseSerializer
from rest_framework.permissions import IsAuthenticated


class ResponsesViewSet(viewsets.ModelViewSet):
    """A simple viewset to get the all the Responses objects
    This class has a token authentication.

    Args:
        viewsets (_type_): viewsets class
    """
    queryset = Responses.objects.all()
    serializer_class = ResponseSerializer
    permission_classes = [IsAuthenticated]
