Skip to content

HOWTO: Testing DCM

bmckinney edited this page Jan 6, 2017 · 9 revisions

1. Set the DCM base URL for the service that responds to upload/download requests.

curl --request PUT \
  --url 'https://localhost:8080/api/admin/settings/%3ADataCaptureModuleUrl?key=mykey' \
  --header 'content-type: application/json' \
  --data 'https://datacapture.example.org'

You should get a response like this:

{
	"status": "OK",
	"data": {
		":DataCaptureModuleUrl": "http://https://datacapture.example.org"
	}
}

2. Create a new dataverse and configure rsync upload support

Specify a colon-separated list of upload protocols. The supported values are: GUI, SWORD, DROPBOX, RSYNC, GLOBUS, ASPERA

Only GUI (default), SWORD, DROPBOX and RSYNC are currently implemented. GLOBUS and ASPERA are additional protocols to be supported by the DCM in the future.

curl --request POST \
  --url https://localhost:7777/api/dataverses/dcm-test/uploadmechanisms \
  --header 'content-type: text/plain' \
  --header 'x-dataverse-key: mykey' \
  --data GUI:RSYNC

3. Download and execute the rsync script via the files tab in the UI