view scripts/api/data-deposit/create-dataset-805-rights-license @ 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/bash -x
USERNAME=spruce
PASSWORD=spruce
SERVER=localhost:8181
DATAVERSE_ALIAS=spruce
curl -s --insecure --data-binary "@scripts/search/tests/data/dataset-trees1.xml" -H "Content-Type: application/atom+xml" -u $USERNAME:$PASSWORD https://$SERVER/dvn/api/data-deposit/v1/swordv2/collection/dataverse/$DATAVERSE_ALIAS \
| xmllint -format -