- Python 3.9.0
- flask
- python-dotenvn
- SQLAlchemy
- marshmallow-sqlalchemy
- Flask-Migrate
- flask_marshmallow
- flask-cors
- Kết quả ví dụ:
'/shop/' , methods = ['POST']) : Thêm shop mới , gửi request là đến server là chuỗi json , nhận lại Response là thông tin shop
'/shop/int:shop_id' , methods = ['GET','PUT','DELETE'] : Xem sửa xóa shop ,kết quả trả về là thông tin shop đc chọn
'/shop/int:shop_id/food/int:food_id' , methods = ['GET','PUT','DELETE'] : Xem sửa xóa món ăn của shop
- VD methods = PUT
- request chuỗi json { "name" : tên shop , "address" : địa chỉ , "phone" : sđt , "shop_pictures" }
- Trong đó :
- order_canceled : số đơn hàng bị hủy
- completed : Số tiền đã hoàn thành
- pending : Số tiền còn đang thiếu
- order_completed : số đơn hàng đã hoàn thành