Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 |
|
---|
4 | iurl_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/programmes/index/assoc/
|
---|
5 |
|
---|
6 | ifilename=${1:-archives/HASH012c.dir/webannotation-list.json}
|
---|
7 |
|
---|
8 | iurl_tail=${ifilename#archives/}
|
---|
9 |
|
---|
10 | iurl="${iurl_prefix}${iurl_tail}"
|
---|
11 |
|
---|
12 |
|
---|
13 | external_url_base="https://intermuse.sowemustthink.space/simpleAnnotationStore/annotation"
|
---|
14 | internal_url_base="http://localhost:4343/simpleAnnotationStore/annotation"
|
---|
15 |
|
---|
16 | post_url="${internal_url_base}/populate"
|
---|
17 |
|
---|
18 | #echo "Running: curl -F uri=${iurl} $post_url"
|
---|
19 |
|
---|
20 | #curl -F "uri=${iurl}" "$post_url"
|
---|
21 |
|
---|
22 |
|
---|
23 | echo ""
|
---|
24 | echo curl -X POST -d "uri=${iurl}" "$post_url"
|
---|
25 |
|
---|
26 | curl -X POST -d "uri=${iurl}" "$post_url"
|
---|
27 |
|
---|
28 | echo ""
|
---|
Note:
See
TracBrowser
for help on using the repository browser.