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