14 lines
271 B
Bash
14 lines
271 B
Bash
|
|
#!/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
|
||
|
|
|
||
|
|
URL='http://127.0.0.1:8000/api/entries'
|
||
|
|
|
||
|
|
curl -s -X GET \
|
||
|
|
-H "Accept: application/json" \
|
||
|
|
$URL
|
||
|
|
|