Skip to content

Commit

Permalink
feat(demo): POST script
Browse files Browse the repository at this point in the history
  • Loading branch information
tkurzydym committed May 13, 2024
1 parent e35571a commit a311d14
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/post-delivery-addresses-script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
set -B # enable brace expansion
while true
do
curl --location --request PUT 'http://localhost:30082/customers/0815/delivery-address' \
--header 'Content-Type: application/json' \
--data-raw '{
"city": "26121 Oldenburg (Oldenburg)",
"recipient": "Max Mustermann",
"street": {
"name": "Poststraße",
"number": "1"
}
}'
echo 'PUT request for delivery address finished.\n'
sleep 0.5
done

0 comments on commit a311d14

Please sign in to comment.