cis: bug fixes
[living-lab-site.git] / cis / post-json.sh
diff --git a/cis/post-json.sh b/cis/post-json.sh
new file mode 100755 (executable)
index 0000000..eac61f7
--- /dev/null
@@ -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