Skip to content

Instantly share code, notes, and snippets.

@goooooouwa
Created December 31, 2014 15:15
Show Gist options
  • Save goooooouwa/f078f52414e354bd6add to your computer and use it in GitHub Desktop.
Save goooooouwa/f078f52414e354bd6add to your computer and use it in GitHub Desktop.
minimal working version of post request to get search result in xls
curl -XPOST -H "Content-Type: application/json" -d '{"document": {}}' http://127.0.0.1:3000/documents/search.xls -v
@goooooouwa
Copy link
Author

for reason why we use an empty document object as minimal request body, see this answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment