File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,13 @@ jobs:
9191 if : ${{ env.JSON_PAYLOAD_PATH != 'empty' }}
9292 id : check_api
9393 run : |
94- response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_BASE/ ")
94+ response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_BASE")
9595 echo "$response" | jq . || true
9696
9797 - name : 📡 Send GET request with Bearer token
9898 run : |
99- echo "🚀 Sending GET to $API_URL "
100- response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_URL ")
99+ echo "🚀 Sending GET to $API_BASE "
100+ response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_BASE ")
101101 echo "🔍 Response JSON:"
102102 echo "$response" | jq .
103103
@@ -106,7 +106,7 @@ jobs:
106106 run : |
107107 echo "Sending JSON payload to API"
108108
109- response=$(curl -s -X POST "$API_BASE/ " -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" --data-binary "@$JSON_PAYLOAD_PATH")
109+ response=$(curl -s -X POST "$API_BASE" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" --data-binary "@$JSON_PAYLOAD_PATH")
110110
111111 result_status=$(echo "$response" | jq -r '.status // empty')
112112 message=$(echo "$response" | jq -r '.message // "No message provided"')
Original file line number Diff line number Diff line change 9696
9797 - name : 📡 Send GET request with Bearer token
9898 run : |
99- echo "🚀 Sending GET to $API_URL "
100- response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_URL ")
99+ echo "🚀 Sending GET to $API_BASE "
100+ response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_BASE ")
101101 echo "🔍 Response JSON:"
102102 echo "$response" | jq .
103103
@@ -106,7 +106,7 @@ jobs:
106106 run : |
107107 echo "Sending JSON payload to API"
108108
109- response=$(curl -s -X POST "$API_BASE/ " -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" --data-binary "@$JSON_PAYLOAD_PATH")
109+ response=$(curl -s -X POST "$API_BASE" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" --data-binary "@$JSON_PAYLOAD_PATH")
110110
111111 result_status=$(echo "$response" | jq -r '.status // empty')
112112 message=$(echo "$response" | jq -r '.message // "No message provided"')
You can’t perform that action at this time.
0 commit comments