blob: 8706114cbd44c4c9ea3cd346801619547534c825 [file] [log] [blame]
Siobhan Tully30fd4292013-05-10 08:59:56 -04001from core.serializers import NodeSerializer
Siobhan Tully5d7dc8d2013-07-02 13:17:33 -04002from rest_framework import generics
3from core.models import Node
4
5class NodeList(generics.ListCreateAPIView):
6 queryset = Node.objects.all()
7 serializer_class = NodeSerializer
8
9class NodeDetail(generics.RetrieveUpdateDestroyAPIView):
10 queryset = Node.objects.all()
11 serializer_class = NodeSerializer
Tony Mack29c287f2013-04-11 21:07:16 -040012
13