Mercurial > hg > LGDataverses
view scripts/api/data-deposit/publish-dataverse @ 11:08c950a22cee
new: add getAllDataverseAlias api for LGServices
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 09 Sep 2015 17:13:18 +0200 |
parents | a50cf11e5178 |
children |
line wrap: on
line source
#!/bin/sh USERNAME=pete PASSWORD=pete DVN_SERVER=localhost:8181 if [ -z "$1" ]; then echo "Please supply a dataverse alias" exit 1 else DATAVERSE_ALIAS=$1 #DATAVERSE_ALIAS=peteTop fi cat /dev/null | curl -s --insecure -X POST -H "In-Progress: false" --data-binary @- https://$USERNAME:$PASSWORD@$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/edit/dataverse/$DATAVERSE_ALIAS \ | xmllint --format -