File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4242 # 3. Send a simple GET request to verify connectivity
4343 - name : 📡 Send GET request to protected endpoint
4444 run : |
45- echo "🚀 GET $API_BASE/validate "
46- response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_BASE/validate ")
45+ echo "🚀 GET $API_BASE/"
46+ response=$(curl -s -H "Authorization: Bearer $TOKEN" "$API_BASE/")
4747 echo "🔍 GET response:"
4848 echo "$response" | jq . || true
4949
7878 # 5. Send POST request with JSON payload
7979 - name : 🚀 Send POST request with JSON payload
8080 run : |
81- echo "🚀 POST $API_BASE/validate "
82- response=$(curl -s -w "\n%{http_code}" -X POST "$API_BASE/validate " \
81+ echo "🚀 POST $API_BASE/"
82+ response=$(curl -s -w "\n%{http_code}" -X POST "$API_BASE/" \
8383 -H "Authorization: Bearer $TOKEN" \
8484 -H "Content-Type: application/json" \
8585 --data-binary "@$JSON_PAYLOAD_PATH")
You can’t perform that action at this time.
0 commit comments