Mercurial > hg > LGDataverses
diff docs/readme.txt @ 0:fcb8807fbd84
Fist commit!
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Tue, 10 Mar 2015 15:15:30 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/readme.txt Tue Mar 10 15:15:30 2015 +0100 @@ -0,0 +1,60 @@ +*** To deploy in glassfish + +mvn clean package + + sudo /home/jurzua/glassfish3/glassfish/bin/asadmin start-domain domain1 + tail -n 1000 -f /home/jurzua/glassfish3/glassfish/domains/domain1/logs/server.log +/home/jurzua/glassfish3/glassfish/bin/asadmin deploy --force=true --name=DVN-web /home/jurzua/Projects/Dataverses/dvn/DVN-root/DVN-web/target/DVN-web.war + + + +----- + +This blog post aims to address these questions. +What it means instead is that + + + +curl -k https://networkAdmin:networkAdmin@localhost/dvn/api/monographs + +--- + +curl -k --data-binary @test01.zip -H "Content-Disposition: filename=test01.zip" -H "Content-Type: application/zip" -H "Packaging: http://purl.org/net/sword/package/SimpleZip" https://networkAdmin:networkAdmin@localhost/dvn/api/data-deposit/v1/swordv2/edit-media/study/hdl:TEST/10001 > borrar.html + +----- + +curl http://networkAdmin:networkAdmin@localhost/dvn/monographs + + + curl --data "studyId=hdl:TEST/10001&user=networkAdmin&password=networkAdmin" --data @borrar.html -H "Content-Type: text/xml" http://networkAdmin:networkAdmin@localhost/dvn/monographs + + + + curl -F "studyId=hdl:TEST/10001" -F "user=networkAdmin" -F "password=networkAdmin" -F "file=@borrar.html" http://networkAdmin:networkAdmin@localhost/dvn/monographs + + + + ---- +Examples URL: + +Get Study Information: +http://localhost/dvn/getStudyInfo?studyId=hdl:TEST/10001 + + +http://localhost/dvn/removeFileMetadata?studyId=hdl:TEST/10001&user=networkAdmin&password=networkAdmin&fileMetadataId= + + +Save +http://localhost/dvn/saveResource?studyId=hdl:TEST/10001&user=networkAdmin&password=networkAdmin& + +curl -H "Content-Type: multipart/form-data" --data-binary @pom.xml -d "user=hola" http://localhost/dvn/saveResource + + + +curl --form upload=@pom.xml --form user=networkAdmin --form password=networkAdmin --form studyId=hdl:TEST/10001 http://localhost/dvn/saveResource + +GET USER +http://localhost/dvn/getUser?user=jurzua&password=xxxx + +GET All USER + http://localhost/dvn/getAllUsers