about summary refs log tree commit diff
path: root/requests_examples.sh
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-05-28 23:39:41 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-05-29 00:26:27 +0200
commit06465c85dbb29c8ed6b8809a34ceb44fcafe2beb (patch)
tree134880edab0a0a76be329a57f4800f587bb10aee /requests_examples.sh
parentsupabase: add api_keys table migration (diff)
downloadfs-tracer-backend-06465c85dbb29c8ed6b8809a34ceb44fcafe2beb.tar.gz
fs-tracer-backend-06465c85dbb29c8ed6b8809a34ceb44fcafe2beb.tar.bz2
fs-tracer-backend-06465c85dbb29c8ed6b8809a34ceb44fcafe2beb.zip
rest-api: handle payloads with an api_key
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/