Merge pull request #1640 from ginabythebay/add_query_example

demonstrate query using curl
This commit is contained in:
Michael Hoffmann 2023-01-09 19:14:37 +01:00 committed by GitHub
commit 6ab96b90c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@
# Configuration variables here: # Configuration variables here:
BSHOST=localhost:3179/bs BSHOST=localhost:3179/bs
SEARCHHOST=localhost:3179/my-search
BSUSER=user BSUSER=user
BSPASS=foo BSPASS=foo
@ -40,3 +41,6 @@ curl -v -u $AUTH http://$BSHOST/camli/enumerate-blobs?limit=1
# List offset -- 200 with list of no blobs # List offset -- 200 with list of no blobs
curl -v -u $AUTH http://$BSHOST/camli/enumerate-blobs?after=sha1-126249fd8c18cbb5312a5705746a2af87fba9538 curl -v -u $AUTH http://$BSHOST/camli/enumerate-blobs?after=sha1-126249fd8c18cbb5312a5705746a2af87fba9538
# Search for all images
echo '{"expression":"is:image","describe":{"rules":[{"attrs":["camliContent"]}]}}' | curl -v --data-binary @- -u $AUTH $SEARCHHOST/camli/search/query