view scripts/search/saved-search @ 12:c2e2d794847f

new: add config.properties file for gazetteer
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 30 Sep 2015 13:43:54 +0200
parents a50cf11e5178
children
line wrap: on
line source

#!/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