aboutsummaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-06-09 15:39:43 +0000
committerterminaldweller <thabogre@gmail.com>2022-06-09 15:39:43 +0000
commit2f7516a0af0eaca205b71415a0910084cb452d33 (patch)
tree1c56cdbf77e826d142e5b2ea8ccf03273054de4f /tests.sh
parentserver link (diff)
downloadmdrtl-2f7516a0af0eaca205b71415a0910084cb452d33.tar.gz
mdrtl-2f7516a0af0eaca205b71415a0910084cb452d33.zip
wip
Diffstat (limited to '')
-rwxr-xr-xtests.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests.sh b/tests.sh
index d23741f..3c18a44 100755
--- a/tests.sh
+++ b/tests.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-curl -k -X POST -H "Content-Type:application/json" -d '{"name":"doc1", "lastModified": 1652882691, "body":"Hello"}' "https://localhost:9080/api/v1/doc"
-curl -k -X GET "https://localhost:9080/api/v1/doc/2"
+curl -k -X POST -H "Content-Type:application/json" -d '{"name":"doc1", "lastModified": 1652882691, "body":"Hello"}' "https://localhost:9080/api/v1/doc/1"
+curl -k -X GET "https://localhost:9080/api/v1/doc/1"
curl -k -X DELETE "https://localhost:9080/api/v1/doc/1"
curl -k -X PUT -H "Content-Type:application/json" -d '{"id": 1, "body": "Die before I do"}' "https://localhost:9080/api/v1/doc/1"