Beispiel #1
0
 def get(self, id):
     order_schema = Models.OrdersSchema(many=True)
     orders = Models.Orders.get(id)
     result = order_schema.dump(orders)
     return result
Beispiel #2
0
 def get(self, id):
     order_schema = Models.OrdersSchema(many=True)
     order = Models.OrderDetails.get(id)
     result = Models.OrderDetailsSchema(many=True).dump(order)
     return result