Scott Baker | 5a35beb | 2016-04-28 16:57:06 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | source ./config.sh | ||||
4 | |||||
5 | SITE_ID=1 | ||||
6 | USER_ID=1 | ||||
7 | |||||
8 | DATA=$(cat <<EOF | ||||
9 | {"name": "mysite_test1", | ||||
10 | "site": $SITE_ID, | ||||
11 | "creator": $USER_ID | ||||
12 | } | ||||
13 | EOF | ||||
14 | ) | ||||
15 | |||||
16 | curl -H "Accept: application/json; indent=4" -H "Content-Type: application/json" -u $AUTH -X POST -d "$DATA" $HOST/xos/slices/?no_hyperlinks=1 |