Mercurial > hg > LGDataverses
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/search/saved-search Tue Sep 08 17:00:21 2015 +0200 @@ -0,0 +1,15 @@ +#!/bin/bash +. scripts/search/export-keys +# 2015-03-26 11:48:50.43 +curl -s http://localhost:8080/api/admin/savedsearches/list?key=$ADMINKEY | jq . +if [ ! -z "$1" ]; then + curl -s http://localhost:8080/api/dataverses/$1/links?key=$ADMINKEY | jq . +fi +if [ ! -z "$2" ]; then + curl -s http://localhost:8080/api/datasets/$2/links?key=$ADMINKEY | jq . +fi +exit +curl -s http://localhost:8080/api/admin/savedsearches -X POST -H 'Content-type:application/json' --upload-file scripts/search/data/savedSearchBasic.json | jq . +curl -s http://localhost:8080/api/admin/savedsearches -X POST -H 'Content-type:application/json' --upload-file scripts/search/data/savedSearchAdvanced.json | jq . +# curl -s -X DELETE http://localhost:8080/api/admin/savedsearches/999 +scripts/search/dbsavedsearch