aboutsummaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-05-18 14:43:24 +0000
committerterminaldweller <thabogre@gmail.com>2022-05-18 14:43:24 +0000
commit52c86c942bae1e0e5e7ba97ea93efafbd4c198dd (patch)
treeb1aa9b9b8c8104bb9ac787b399a12133e153e4b1 /tests.sh
parentsome fixes (diff)
downloadmdrtl-52c86c942bae1e0e5e7ba97ea93efafbd4c198dd.tar.gz
mdrtl-52c86c942bae1e0e5e7ba97ea93efafbd4c198dd.zip
CRUD tested and working
Diffstat (limited to '')
-rwxr-xr-xtests.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
new file mode 100755
index 0000000..1187978
--- /dev/null
+++ b/tests.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+curl -X POST -H "Content-Type:application/json" -d '{"name":"doc1", "lastModified": 1652882691, "body":"Hello"}' "http://localhost:9080/api/v1/doc"
+curl -X GET "http://localhost:9080/api/v1/doc/2"
+curl -X DELETE "http://localhost:9080/api/v1/doc/1"
+curl -X PUT -H "Content-Type:application/json" -d '{"id": 1, "body": "Die before I do"}' "http://localhost:9080/api/v1/doc/1"