Co-authored-by: jon brookes <marshyon@gmail.com> Reviewed-on: https://codeberg.org/headshed/share-lt/pulls/18
14 lines
379 B
Bash
Executable file
14 lines
379 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# TOKEN="your_api_token_here"
|
|
# ensure to have set TOKEN to a valid value before running
|
|
# ideally add this to an .envrc file and source it
|
|
# tokens need to be created with tinker or similar method
|
|
|
|
|
|
URL="${ADDRESS:-http://127.0.0.1:8000/api/entries}"
|
|
curl -s -X GET \
|
|
-H "Authorization: Bearer $TOKEN" \
|
|
-H "Accept: application/json" \
|
|
$URL
|
|
|