forked from IQSS/dataverse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate-psi-dvs
executable file
·24 lines (19 loc) · 950 Bytes
/
create-psi-dvs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
. scripts/search/export-keys
DIR='scripts/search/data/in/dv-psi'
USERDIR=/tmp/searchusers
curl -s -H "Content-type:application/json" -X POST -d @$DIR/1 "http://localhost:8080/api/dataverses/root?key=$PSIADMINKEY"
echo
PARENT=psi
for i in {2..9}; do
curl -s -H "Content-type:application/json" -X POST -d @$DIR/$i "http://localhost:8080/api/dataverses/$PARENT?key=$PSIADMINKEY"
echo
done
curl -s -H "Content-type:application/json" -X POST -d @$DIR/10 "http://localhost:8080/api/dataverses/psimali?key=$PSIADMINKEY"
echo
curl -s -H "Content-type:application/json" -X POST -d @$DIR/11 "http://localhost:8080/api/dataverses/psimali?key=$PSIADMINKEY"
echo
curl -s -H "Content-type:application/json" -X POST -d @$DIR/12 "http://localhost:8080/api/dataverses/psimalihealth?key=$PSIADMINKEY"
echo
curl -s -H "Content-type:application/json" -X POST -d @$DIR/13 "http://localhost:8080/api/dataverses/psimalihealthchild?key=$PSIADMINKEY"
echo