share-lt/cmd/curl_get_categories.sh
jon brookes f980be8e28 feature: add api for categories
feature: add initial docker build and compose for development mode
2026-01-15 17:39:59 +00:00

15 lines
371 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='http://127.0.0.1:8000/api/categories'
curl -s -X GET \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json" \
$URL