예제 #1
0
 def get(self, id):
     order_schema = Models.OrdersSchema(many=True)
     orders = Models.Orders.get(id)
     result = order_schema.dump(orders)
     return result
예제 #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