0
|
1 *** To deploy in glassfish
|
|
2
|
|
3 mvn clean package
|
|
4
|
|
5 sudo /home/jurzua/glassfish3/glassfish/bin/asadmin start-domain domain1
|
|
6 tail -n 1000 -f /home/jurzua/glassfish3/glassfish/domains/domain1/logs/server.log
|
|
7 /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
|
|
8
|
|
9
|
|
10
|
|
11 -----
|
|
12
|
|
13 This blog post aims to address these questions.
|
|
14 What it means instead is that
|
|
15
|
|
16
|
|
17
|
|
18 curl -k https://networkAdmin:networkAdmin@localhost/dvn/api/monographs
|
|
19
|
|
20 ---
|
|
21
|
|
22 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
|
|
23
|
|
24 -----
|
|
25
|
|
26 curl http://networkAdmin:networkAdmin@localhost/dvn/monographs
|
|
27
|
|
28
|
|
29 curl --data "studyId=hdl:TEST/10001&user=networkAdmin&password=networkAdmin" --data @borrar.html -H "Content-Type: text/xml" http://networkAdmin:networkAdmin@localhost/dvn/monographs
|
|
30
|
|
31
|
|
32
|
|
33 curl -F "studyId=hdl:TEST/10001" -F "user=networkAdmin" -F "password=networkAdmin" -F "file=@borrar.html" http://networkAdmin:networkAdmin@localhost/dvn/monographs
|
|
34
|
|
35
|
|
36
|
|
37 ----
|
|
38 Examples URL:
|
|
39
|
|
40 Get Study Information:
|
|
41 http://localhost/dvn/getStudyInfo?studyId=hdl:TEST/10001
|
|
42
|
|
43
|
|
44 http://localhost/dvn/removeFileMetadata?studyId=hdl:TEST/10001&user=networkAdmin&password=networkAdmin&fileMetadataId=
|
|
45
|
|
46
|
|
47 Save
|
|
48 http://localhost/dvn/saveResource?studyId=hdl:TEST/10001&user=networkAdmin&password=networkAdmin&
|
|
49
|
|
50 curl -H "Content-Type: multipart/form-data" --data-binary @pom.xml -d "user=hola" http://localhost/dvn/saveResource
|
|
51
|
|
52
|
|
53
|
|
54 curl --form upload=@pom.xml --form user=networkAdmin --form password=networkAdmin --form studyId=hdl:TEST/10001 http://localhost/dvn/saveResource
|
|
55
|
|
56 GET USER
|
|
57 http://localhost/dvn/getUser?user=jurzua&password=xxxx
|
|
58
|
|
59 GET All USER
|
|
60 http://localhost/dvn/getAllUsers
|