aboutsummaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-05-20 06:21:47 +0000
committerterminaldweller <thabogre@gmail.com>2022-05-20 06:21:47 +0000
commit9efecb455e75cedae0583b0bab16cf166e64bf7a (patch)
tree4df4383035157a5e7aa6a71e2f84d402dc5cd41d /tests.sh
parentadded icons for save,load,delete (diff)
downloadmdrtl-9efecb455e75cedae0583b0bab16cf166e64bf7a.tar.gz
mdrtl-9efecb455e75cedae0583b0bab16cf166e64bf7a.zip
enabled https and http2
Diffstat (limited to '')
-rwxr-xr-xtests.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests.sh b/tests.sh
index 1187978..d23741f 100755
--- a/tests.sh
+++ b/tests.sh
@@ -1,6 +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"
+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 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"