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