also read ops for admin

This commit is contained in:
Bartal Læarsson
2026-06-25 13:07:17 +01:00
parent 5855a55b40
commit cc284fed81
+3
View File
@@ -93,6 +93,9 @@ CREATED_ID=$(curl -s -X POST https://go-api.poc.fló.fo/api/v1/registrations \
-d '{"gender":"unknown","location":"Tórshavn","abuse_type":"psychological","status":"new"}' \ -d '{"gender":"unknown","location":"Tórshavn","abuse_type":"psychological","status":"new"}' \
| sed -n 's/.*"id":"\([^"]*\)".*/\1/p') | sed -n 's/.*"id":"\([^"]*\)".*/\1/p')
curl -s "https://go-api.poc.fló.fo/api/v1/registrations/$CREATED_ID" \
-H "Authorization: $ADMIN_TOKEN"
curl -s -X PUT "https://go-api.poc.fló.fo/api/v1/registrations/$CREATED_ID" \ curl -s -X PUT "https://go-api.poc.fló.fo/api/v1/registrations/$CREATED_ID" \
-H "Authorization: $ADMIN_TOKEN" \ -H "Authorization: $ADMIN_TOKEN" \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \