Skip to content

Commit b96f802

Browse files
committed
add all the endpoints to the template
1 parent 132e9d8 commit b96f802

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

order/app.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,23 @@ def create_order(user_id):
2727
pass
2828

2929

30+
@app.delete('/remove/<order_id>')
31+
def remove_order(order_id):
32+
pass
33+
34+
3035
@app.post('/addItem/<order_id>/<item_id>')
3136
def add_item(order_id, item_id):
3237
pass
3338

3439

40+
@app.delete('/removeItem/<order_id>/<item_id>')
41+
def remove_item(order_id, item_id):
42+
pass
43+
44+
3545
@app.get('/find/<order_id>')
36-
def find_item(order_id):
46+
def find_order(order_id):
3747
pass
3848

3949

payment/app.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,13 @@ def add_credit(user_id: str, amount: int):
3838
@app.post('/pay/<user_id>/<order_id>/<amount>')
3939
def remove_credit(user_id: str, order_id: str, amount: int):
4040
pass
41+
42+
43+
@app.post('/cancel/<user_id>/<order_id>')
44+
def cancel_payment(user_id: str, order_id: str):
45+
pass
46+
47+
48+
@app.post('/status/<user_id>/<order_id>')
49+
def payment_status(user_id: str, order_id: str):
50+
pass

0 commit comments

Comments
 (0)