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.
13 lines
362 B
13 lines
362 B
5 months ago
|
#!/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"
|