def get(self, request, id): abu = team.objects.filter(id=id) serializer = serviceSerializer(abu, many=True) return Response(serializer.data)
def get(self, request): abu = team.objects.all() serializer = serviceSerializer(abu, many=True) return Response(serializer.data)
def get(self, request): pro = promotions.objects.all() serializer = serviceSerializer(pro, many=True) return Response(serializer.data)
def get(self, request, id): pro = promotions.objects.filter(id=id) serializer = serviceSerializer(pro, many=True) return Response(serializer.data)
def get(self, request): ser = service.objects.all() serializer = serviceSerializer(ser, many=True) return Response(serializer.data)