cis notified web server of a job completion; upload form interface and validation...
[living-lab-site.git] / cis / post-json.sh
1 #!/usr/bin/env bash
2
3 if [ $# -ne 1 ]; then
4         echo "usage: $0 json_file" >&2
5         exit 1
6 fi
7
8 JSON_FILE="$1"
9 CIS_URL="http://p2p-next-03.grid.pub.ro:8080/"
10
11 curl -H 'Content-Type: application/json' --data-binary @"$JSON_FILE" ${CIS_URL}ingest_content