diff scripts/api/data-deposit/create-dataset-899-expansion @ 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/api/data-deposit/create-dataset-899-expansion	Tue Sep 08 17:00:21 2015 +0200
@@ -0,0 +1,7 @@
+#!/bin/bash
+USERNAME=pete
+PASSWORD=pete
+DVN_SERVER=localhost:8181
+DATAVERSE_ALIAS=peteTop
+curl -s --insecure --data-binary "@scripts/api/data-deposit/data/atom-entry-study-899-expansion.xml" -H "Content-Type: application/atom+xml" -u $USERNAME:$PASSWORD https://$DVN_SERVER/dvn/api/data-deposit/v1/swordv2/collection/dataverse/$DATAVERSE_ALIAS \
+| xmllint -format -