From 436367a6674136358e8475a1d5f3bb199c3cdfcb Mon Sep 17 00:00:00 2001 From: kageru Date: Sun, 4 Nov 2018 13:22:12 +0100 Subject: [PATCH] Added script for testing --- test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 test.sh diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..552e87d --- /dev/null +++ b/test.sh @@ -0,0 +1,9 @@ + +if [ -z ${1+x} ]; then + msg="test message" +else + msg="$1" +fi + +curl localhost:12345/add -d "{\"content\": \"$msg\", \"Title\": \"title\", \"Secret\": \"asdawdwd\", \"author\": \"me\"}" -H "Content-Type: application/json" -v +