2019-11-21 15:08:00 +01:00
|
|
|
#!/bin/sh
|
|
|
|
base='https://tap.zeus.gent'
|
|
|
|
user='felixvdj'
|
|
|
|
token="$(pass show ugent/zeus/tap)"
|
|
|
|
|
|
|
|
curl --header 'Accept: application/json' \
|
|
|
|
--header 'Content-Type: application/json' \
|
|
|
|
--header "Authorization: Token token=$token" \
|
2021-08-17 10:00:21 +02:00
|
|
|
--data '{"order":{"order_items_attributes":[{"count":1,"product_id":1}]}}' \
|
2019-11-21 15:08:00 +01:00
|
|
|
--location \
|
|
|
|
"$base/users/$user/orders.json"
|