X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?p=living-lab-site.git;a=blobdiff_plain;f=cis%2Fpost-json.sh;fp=cis%2Fpost-json.sh;h=eac61f7240536542eced7cbd3d9df46813de1bbd;hp=0000000000000000000000000000000000000000;hb=c7b70f31aa7d34d184c20ac6258fec2174ea8d67;hpb=9d8c32e99434169d17b02774156a32833b1801c7 diff --git a/cis/post-json.sh b/cis/post-json.sh new file mode 100755 index 0000000..eac61f7 --- /dev/null +++ b/cis/post-json.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +if [ $# -ne 1 ]; then + echo "usage: $0 json_file" >&2 + exit 1 +fi + +JSON_FILE="$1" + +curl -H application/json --data-binary @"$JSON_FILE" http://localhost:8080/ingest_content