7 lines
199 B
Bash
7 lines
199 B
Bash
#!/bin/bash
|
|
|
|
URL="http://localhost:5000/user/login"
|
|
DATA='{"username":"test-user","password":"123456"}'
|
|
|
|
RESPONSE=$(curl -s -X POST $URL -H "Content-Type: application/json" -d "$DATA")
|
|
echo $RESPONSE |