diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-05-28 23:39:41 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-05-29 00:26:27 +0200 |
commit | 06465c85dbb29c8ed6b8809a34ceb44fcafe2beb (patch) | |
tree | 134880edab0a0a76be329a57f4800f587bb10aee /requests_examples.sh | |
parent | supabase: add api_keys table migration (diff) | |
download | fs-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-x | requests_examples.sh | 5 |
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/ |