aboutsummaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests.sh')
-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"