test app
This commit is contained in:
parent
ec0b64b459
commit
ea151d0f48
16
test_app.sh
Normal file
16
test_app.sh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$#" -ne 1 ]; then
|
||||||
|
echo "Usage: ./test_app.sh <image_path>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
IMAGE_PATH="$1"
|
||||||
|
|
||||||
|
curl -X POST \
|
||||||
|
-H "Content-Type: multipart/form-data" \
|
||||||
|
-F "image=@${IMAGE_PATH}" \
|
||||||
|
-F "text=Sample Text" \
|
||||||
|
-F "blocks=Block 1" \
|
||||||
|
-F "blocks=Block 2" \
|
||||||
|
http://localhost:5000/api
|
Loading…
Reference in New Issue
Block a user