view scripts/search/create-tree-dvs1 @ 14:be7787c36e58 default tip

new: nofity LGSercies for deleted files
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 02 Nov 2015 16:41:23 +0100
parents a50cf11e5178
children
line wrap: on
line source

#!/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