def get_serializer_class(self):
        """
        Use NodeDetailSerializer which requires 'id'
        """
        if self.request.method in ('PUT', 'PATCH', 'DELETE'):
            return NodeDetailSerializer
        else:
            return NodeSerializer

    # overrides ListBulkCreateJSONAPIView
dataset/ETHPy150Open CenterForOpenScience/osf.io/api/nodes/views.py/NodeList.get_serializer_class/original