2026-01-07 16:37:50 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
# this should fail, no token provided
|
|
|
|
|
# users need to be authenticated and have been
|
|
|
|
|
# granted access to view entries by being given
|
|
|
|
|
# a token
|
|
|
|
|
|
2026-02-08 18:04:18 +01:00
|
|
|
URL="${ADDRESS:-http://127.0.0.1:8000/api/entries}"
|
2026-01-07 16:37:50 +00:00
|
|
|
curl -s -X GET \
|
|
|
|
|
-H "Accept: application/json" \
|
|
|
|
|
$URL
|
|
|
|
|
|