예제 #1
0
 def get(self, request, id):
     abu = team.objects.filter(id=id)
     serializer = serviceSerializer(abu, many=True)
     return Response(serializer.data)
예제 #2
0
 def get(self, request):
     abu = team.objects.all()
     serializer = serviceSerializer(abu, many=True)
     return Response(serializer.data)
예제 #3
0
 def get(self, request):
     pro = promotions.objects.all()
     serializer = serviceSerializer(pro, many=True)
     return Response(serializer.data)
예제 #4
0
 def get(self, request, id):
     pro = promotions.objects.filter(id=id)
     serializer = serviceSerializer(pro, many=True)
     return Response(serializer.data)
예제 #5
0
 def get(self, request):
     ser = service.objects.all()
     serializer = serviceSerializer(ser, many=True)
     return Response(serializer.data)