blob: e394c184440164c8fa6bcf4c206e8213e7db1c0a [file] [log] [blame]
Siobhan Tully61367092013-07-07 17:20:18 -04001from core.serializers import ServiceResourceSerializer
2from rest_framework import generics
3from core.models import ServiceResource
4
5class ServiceResourceList(generics.ListCreateAPIView):
6 queryset = ServiceResource.objects.all()
7 serializer_class = ServiceResourceSerializer
8
9class ServiceResourceDetail(generics.RetrieveUpdateDestroyAPIView):
10 queryset = ServiceResource.objects.all()
11 serializer_class = ServiceResourceSerializer
12
13