You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/examples/demos/grupa/test_bash.bash

13 lines
362 B

#!/bin/bash
# Define the base URL
base_url="http://localhost:8000"
# Define the JSON payload
payload='{"feature": "login system", "codebase": "existing codebase here"}'
# Send POST request
echo "Sending request to /agent/ endpoint..."
response=$(curl -s -X POST "$base_url/agent/" -H "Content-Type: application/json" -d "$payload")
echo "Response: $response"