Skip to content

Commit

Permalink
add all the endpoints to the template
Browse files Browse the repository at this point in the history
  • Loading branch information
kPsarakis committed May 4, 2022
1 parent 132e9d8 commit b96f802
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
12 changes: 11 additions & 1 deletion order/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,23 @@ def create_order(user_id):
pass


@app.delete('/remove/<order_id>')
def remove_order(order_id):
pass


@app.post('/addItem/<order_id>/<item_id>')
def add_item(order_id, item_id):
pass


@app.delete('/removeItem/<order_id>/<item_id>')
def remove_item(order_id, item_id):
pass


@app.get('/find/<order_id>')
def find_item(order_id):
def find_order(order_id):
pass


Expand Down
10 changes: 10 additions & 0 deletions payment/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,13 @@ def add_credit(user_id: str, amount: int):
@app.post('/pay/<user_id>/<order_id>/<amount>')
def remove_credit(user_id: str, order_id: str, amount: int):
pass


@app.post('/cancel/<user_id>/<order_id>')
def cancel_payment(user_id: str, order_id: str):
pass


@app.post('/status/<user_id>/<order_id>')
def payment_status(user_id: str, order_id: str):
pass

0 comments on commit b96f802

Please sign in to comment.