Skip to content

Commit

Permalink
Testing POST '/v1/signature' API
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Gryglicki <[email protected]>
  • Loading branch information
lukaszgryglicki committed Nov 27, 2024
1 parent 247a9f8 commit 8e02cb1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cla-backend/scripts/signature_post.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
# API_URL=https://3f13-147-75-85-27.ngrok-free.app (defaults to localhost:5000)
# TOKEN='...' - Auth0 JWT bearer token
# BODY='{...}' - signature body

if [ -z "$API_URL" ]
then
export API_URL="http://localhost:5000"
fi

if [ ! -z "$DEBUG" ]
then
echo "curl -s -XPOST -H 'Authorization: Bearer ${TOKEN}' -H 'Content-Type: application/json' '${API_URL}/v1/signature' -d '${BODY}' | jq -r '.'"
fi
curl -s -XPOST -H "Authorization: Bearer ${TOKEN}" -H "Content-Type: application/json" "${API_URL}/v1/signature" -d "${BODY}" | jq -r '.'

0 comments on commit 8e02cb1

Please sign in to comment.