Mercurial > hg > LGDataverses
diff docs/readme.txt @ 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/docs/readme.txt Tue Sep 08 17:00:21 2015 +0200 @@ -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/10002 http://localhost/dvn/saveResource + +GET USER +http://localhost/dvn/getUser?user=jurzua&password=221082 + +GET All USER + http://localhost/dvn/getAllUsers \ No newline at end of file
