Added script for testing
This commit is contained in:
parent
440839e410
commit
436367a667
9
test.sh
Executable file
9
test.sh
Executable file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user