feat: implement basic API

with authorization and validation
This commit is contained in:
jon brookes 2026-01-07 16:37:50 +00:00
parent b033262bd7
commit 6fbeedd50c
21 changed files with 599 additions and 10 deletions

13
cmd/curl_get_entries_anon.sh Executable file
View file

@ -0,0 +1,13 @@
#!/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