From ea151d0f48274e72356220304c867d497f7c7cd0 Mon Sep 17 00:00:00 2001 From: mm Date: Sat, 18 Mar 2023 22:47:54 +0000 Subject: [PATCH] test app --- test_app.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test_app.sh diff --git a/test_app.sh b/test_app.sh new file mode 100644 index 0000000..8aa4082 --- /dev/null +++ b/test_app.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if [ "$#" -ne 1 ]; then + echo "Usage: ./test_app.sh " + 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