From 632d30751bcdf5436a2ff74d8954468b4144ce4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartal=20L=C3=A6arsson?= Date: Thu, 25 Jun 2026 12:56:21 +0100 Subject: [PATCH] add jq to curl documentation like --- internal/web/templates/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html index 302a809..7dfd08b 100644 --- a/internal/web/templates/index.html +++ b/internal/web/templates/index.html @@ -41,7 +41,7 @@
Reader user

reader / reader-password

-

Can read protected endpoints and use filters.


+

Can read protected endpoints and use filters. I recommend having jq installed when curling

@@ -70,16 +70,16 @@ | sed -n 's/.*"token":"\([^"]*\)".*/\1/p') curl -s 'https://go-api.poc.fló.fo/api/v1/registrations?location=Tórshavn&limit=5' \ - -H "Authorization: $READER_TOKEN" + -H "Authorization: $READER_TOKEN" | jq curl -s 'https://go-api.poc.fló.fo/api/v1/registrations?gender=female&abuse_type=psychological&status=open&limit=10' \ - -H "Authorization: $READER_TOKEN" + -H "Authorization: $READER_TOKEN" | jq curl -s 'https://go-api.poc.fló.fo/api/v1/registrations?from=1989-01-01&to=1990-01-01&offset=20&limit=10' \ - -H "Authorization: $READER_TOKEN" + -H "Authorization: $READER_TOKEN" | jq curl -s 'https://go-api.poc.fló.fo/api/v1/locations' \ - -H "Authorization: $READER_TOKEN" + -H "Authorization: $READER_TOKEN" | jq

CRUD user — create, update, and delete examples

ADMIN_TOKEN=$(curl -s -X POST https://go-api.poc.fló.fo/login \