about summary refs log tree commit diff
path: root/requests_examples.sh
diff options
context:
space:
mode:
Diffstat (limited to 'requests_examples.sh')
-rwxr-xr-xrequests_examples.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/requests_examples.sh b/requests_examples.sh
new file mode 100755
index 0000000..45ef59d
--- /dev/null
+++ b/requests_examples.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+curl -H "API_KEY: ${API_KEY}" -X POST -d '{"timestamp": "2017-01-02T15:04:05Z"}' http://leunam.dev:9999/file/
+
+curl -H "API_KEY: ${API_KEY}" -X GET http://leunam.dev:9999/file/