view scripts/search/saved-search @ 14:be7787c36e58 default tip

new: nofity LGSercies for deleted files
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 02 Nov 2015 16:41:23 +0100
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