Add Supplier Exporter sample

This commit is contained in:
Oleg Zhurakousky
2020-05-07 10:28:25 +02:00
parent 41acbfd438
commit 2108450f2b
12 changed files with 460 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
curl -s localhost:8000/add -d '{"name":"world"}' -H "Content-Type: text/plain"
echo
echo Waiting...
sleep 1
RESPONSE=`curl -s localhost:8000/take`
echo Got response: $RESPONSE
if [[ "$RESPONSE" == '{"name":"hi world!"}' ]]; then
exit 0
else
exit 1
fi