aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2023-02-28 20:40:22 +0000
committerterminaldweller <thabogre@gmail.com>2023-02-28 20:40:22 +0000
commitdeccc46d93793098204cdc1405d9aac4bc9e80ae (patch)
treef219c40eaa8ce6f2b9f0fc3850220899ee3c6e87 /test
parentgolang lint fixes (diff)
downloadhived-deccc46d93793098204cdc1405d9aac4bc9e80ae.tar.gz
hived-deccc46d93793098204cdc1405d9aac4bc9e80ae.zip
golang lint fixes
Diffstat (limited to 'test')
-rwxr-xr-xtest/endpoints.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/endpoints.sh b/test/endpoints.sh
index 02381d6..7f9533b 100755
--- a/test/endpoints.sh
+++ b/test/endpoints.sh
@@ -3,10 +3,10 @@ set -e
set -x
# sleep 5
-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 -k -X GET "https://localhost:8008/crypto/v1/price?name=CAKE&unit=USD"
+curl -k -X GET "https://localhost:8008/crypto/v1/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/v1/alert
-curl -X GET -H "Content-Type: application/json" "https://api.terminaldweller.com/crypto/alert?key=alert13"
-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
+curl -k -X GET -H "Content-Type: application/json" "https://localhost:8008/crypto/v1/alert?key=alert1"
+curl -k -X DELETE -H "Content-Type: application/json" "https://localhost:8008/crypto/v1/alert?key=alert1"
+curl -k -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' https://localhost:8008/crypto/v1/alert