summaryrefslogtreecommitdiff
path: root/src/hub/test-client
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-11-16 22:38:37 +0100
committerChristian Pointner <equinox@spreadspace.org>2017-11-16 22:38:37 +0100
commit25a6c9dd08d01fa24b769d3b12a68ac6418077a0 (patch)
tree5addddd460f2bc889e28fec31b5092acb169e420 /src/hub/test-client
parentMerge branch 'clean-shutdown' (diff)
move hub web api to /api/v1/ path
Diffstat (limited to 'src/hub/test-client')
-rwxr-xr-xsrc/hub/test-client6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hub/test-client b/src/hub/test-client
index 620d9a4..0e3424e 100755
--- a/src/hub/test-client
+++ b/src/hub/test-client
@@ -18,18 +18,18 @@ case $1 in
web)
echo "web: post sample-web.json"
echo "-------------------------"
- time curl 'http://localhost:8000/updates' -d @../../dat/sample-web.json
+ time curl 'http://localhost:8000/api/v1/updates' -d @../../dat/sample-web.json
echo ""
;;
web-bulk)
echo "web: post sample-web-bulk.json"
echo "------------------------------"
- time curl 'http://localhost:8000/updates/_bulk' -d @../../dat/sample-web-bulk.json
+ time curl 'http://localhost:8000/api/v1/updates/_bulk' -d @../../dat/sample-web-bulk.json
echo ""
;;
esac
echo "store contents"
echo "--------------"
-curl 'http://localhost:8000/updates/_bulk' | jq .
+curl 'http://localhost:8000/api/v1/updates/_bulk' | jq .
echo ""