# API do Models $ModelName$

class $ModelName$ViewAPI(ModelViewSet):
    #TODO LEMBRE DE COMENTAR O SEU CODIGO $ModelName$ViewAPI
    """ """
    queryset = $ModelName$.objects.all()
    serializer_class = $ModelName$Serializer

    @action(methods=['post'], detail=False)
    def validate(self, request, format=None):
        serializer = $ModelName$Serializer(data=request.data)
        if serializer.is_valid(raise_exception=True):
            return Response(serializer.data, status=status.HTTP_200_OK)