Mercurial > hg > LGDataverses
comparison scripts/search/saved-search @ 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 |
comparison
equal
deleted
inserted
replaced
9:5926d6419569 | 10:a50cf11e5178 |
---|---|
1 #!/bin/bash | |
2 . scripts/search/export-keys | |
3 # 2015-03-26 11:48:50.43 | |
4 curl -s http://localhost:8080/api/admin/savedsearches/list?key=$ADMINKEY | jq . | |
5 if [ ! -z "$1" ]; then | |
6 curl -s http://localhost:8080/api/dataverses/$1/links?key=$ADMINKEY | jq . | |
7 fi | |
8 if [ ! -z "$2" ]; then | |
9 curl -s http://localhost:8080/api/datasets/$2/links?key=$ADMINKEY | jq . | |
10 fi | |
11 exit | |
12 curl -s http://localhost:8080/api/admin/savedsearches -X POST -H 'Content-type:application/json' --upload-file scripts/search/data/savedSearchBasic.json | jq . | |
13 curl -s http://localhost:8080/api/admin/savedsearches -X POST -H 'Content-type:application/json' --upload-file scripts/search/data/savedSearchAdvanced.json | jq . | |
14 # curl -s -X DELETE http://localhost:8080/api/admin/savedsearches/999 | |
15 scripts/search/dbsavedsearch |