Skip to content

Instantly share code, notes, and snippets.

@bryder
Created April 9, 2015 05:29
Show Gist options
  • Save bryder/f5fff36a5f8538a5f25b to your computer and use it in GitHub Desktop.
Save bryder/f5fff36a5f8538a5f25b to your computer and use it in GitHub Desktop.
curl way to use --data-urlencode The -G is crucial. -X GET does not work - the where clause does not get passed
curl -sS -G --data- { "_id": { "$in": [ "55106b4797b4502d68776cb2","55106b4797b4502d68776cc4","55106b4797b4502d68776cc7","55106b4897b4502d68776cca","55106b4797b4502d68776cc1","55106b4897b4502d68776ccd","55106b4797b4502d68776cb5","55106b4797b4502d68776cb8","55106b4797b4502d68776cbb","55106b4797b4502d68776cbe" ]}} , { "name": {"$in": [ ]} }]}' http://localhost:5001/node_hateoas_off | jq '._items[] | .name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment