Mercurial > hg > LGDataverses
diff scripts/search/create-tree-dvs1 @ 10:a50cf11e5178
Rewrite LGDataverse completely upgrading to dataverse4.0
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 08 Sep 2015 17:00:21 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/search/create-tree-dvs1 Tue Sep 08 17:00:21 2015 +0200 @@ -0,0 +1,12 @@ +#!/bin/sh +DIR='scripts/search/data/in/dv-trees1' +USERDIR=/tmp/searchusers +SPRUCEKEY=`cat $USERDIR/4 | jq .data.apiToken | tr -d \"` +curl -s -H "Content-type:application/json" -X POST -d @$DIR/1 "http://localhost:8080/api/dataverses/root?key=$SPRUCEKEY" +echo + +curl -s -H "Content-type:application/json" -X POST -d @$DIR/2 "http://localhost:8080/api/dataverses/trees?key=$SPRUCEKEY" +echo + +curl -s -H "Content-type:application/json" -X POST -d @$DIR/3 "http://localhost:8080/api/dataverses/trees?key=$SPRUCEKEY" +echo