Skip to content

Commit 1cabe3d

Browse files
Merge branch 'Mayank-goel360:main' into main
2 parents f1f248e + dc020f2 commit 1cabe3d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/dra.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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"')

.github/workflows/dra1.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ jobs:
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"')

0 commit comments

Comments
 (0)