aboutsummaryrefslogtreecommitdiffstats
path: root/test/endpoints.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-05-18 14:43:38 +0000
committerterminaldweller <thabogre@gmail.com>2022-05-18 14:43:38 +0000
commit488d609a64d35683a824bef60841665942bf5cf9 (patch)
treebffdc94087b9cb0b85c0200a31bd032528161b5c /test/endpoints.sh
parentwas using node image for self-signed certificates (diff)
downloadhived-488d609a64d35683a824bef60841665942bf5cf9.tar.gz
hived-488d609a64d35683a824bef60841665942bf5cf9.zip
update
Diffstat (limited to 'test/endpoints.sh')
-rwxr-xr-xtest/endpoints.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/endpoints.sh b/test/endpoints.sh
index 6263136..85621dd 100755
--- a/test/endpoints.sh
+++ b/test/endpoints.sh
@@ -6,3 +6,7 @@ set -x
curl -k -X GET https://localhost:8008/crypto/price?name=CAKE&unit=USD
curl -k -X GET https://localhost:8008/crypto/pair?one=ETH&two=CAKE&multiplier=4.0
curl -k -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' https://localhost:8008/crypto/alert
+
+curl -X GET -H "Content-Type: application/json" "https://api.terminaldweller.com/crypto/alert?key=alert10"
+curl -X DELETE -H "Content-Type: application/json" "https://api.terminaldweller.com/crypto/alert?key=alert10"
+curl -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' https://api.terminaldweller.com/crypto/alert