source: gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes/SUBMIT-WEBANNOTATION-LIST.sh@ 37077

Last change on this file since 37077 was 37077, checked in by davidb, 16 months ago

Useful scripts to help work with the SimpleAnnotationServer Store servlet-backend

  • Property svn:executable set to *
File size: 651 bytes
Line 
1#!/bin/bash
2
3
4iurl_prefix=http://localhost:4343/greenstone3/library/sites/intermuse/collect/programmes/index/assoc/
5
6ifilename=${1:-archives/HASH012c.dir/webannotation-list.json}
7
8iurl_tail=${ifilename#archives/}
9
10iurl="${iurl_prefix}${iurl_tail}"
11
12
13external_url_base="https://intermuse.sowemustthink.space/simpleAnnotationStore/annotation"
14internal_url_base="http://localhost:4343/simpleAnnotationStore/annotation"
15
16post_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
23echo ""
24echo curl -X POST -d "uri=${iurl}" "$post_url"
25
26curl -X POST -d "uri=${iurl}" "$post_url"
27
28echo ""
Note: See TracBrowser for help on using the repository browser.