22 lines
522 B
Python
22 lines
522 B
Python
import requests
|
|
|
|
if __name__ == "__main__":
|
|
# Helper for testing the API
|
|
response = requests.post(
|
|
"http://127.0.0.1:5000/print_order",
|
|
json={
|
|
"order_id": "12345",
|
|
"order_date": "2025-04-02T06:34:08.012Z",
|
|
"customer_name": "Typhus",
|
|
"seat_id": "A13",
|
|
"items": [
|
|
{
|
|
"menu_item_name": "Bier",
|
|
"amount": 2
|
|
}
|
|
]
|
|
},
|
|
headers={"x-password": "Alkohol1"}
|
|
)
|
|
print(response)
|