def put(self, request, pk, format=None):
     Order = Service.getOrderById(pk)
     serializer = OrderSerializer(Order, data=request.DATA)
     if serializer.is_valid():
         serializer.save()
         return Response(serializer.data)
     return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
 def delete(self, request, pk, format=None):
     Order = Service.getOrderById(pk)
     Service.deleteOrder(Order)
     return Response(status=status.HTTP_204_NO_CONTENT)
 def get(self, request, pk, format=None):
     Order = Service.getOrderById(pk)
     serializer = OrderSerializer(Order)
     return Response(serializer.data)