feat: add TextWidget

add TextWidget CRUD api

add basic tests for API
This commit is contained in:
jon brookes 2026-01-08 16:22:47 +00:00
parent 13cfd2961f
commit c66645cbdd
18 changed files with 536 additions and 1 deletions

15
cmd/curl_get_text_widget.sh Executable file
View file

@ -0,0 +1,15 @@
#!/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/text-widgets'
curl -s -X GET \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json" \
$URL