14 lines
260 B
Bash
Executable File
14 lines
260 B
Bash
Executable File
|
|
#!/bin/bash
|
|
set -e
|
|
|
|
BASE_URL="http://localhost:3000/api/v1"
|
|
|
|
echo "1. Parsing Script..."
|
|
RESPONSE=$(curl -s -X POST "$BASE_URL/scripts/parse" \
|
|
-H "Content-Type: multipart/form-data" \
|
|
-F "file=@test_script.txt")
|
|
|
|
echo "Response:"
|
|
echo "$RESPONSE" | jq .
|