From 35c8beccf69860479ff86215d08c8a05ed0a48a8 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 25 Feb 2021 12:57:07 +0330 Subject: maybe localhost? --- test/endpoints.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/endpoints.sh b/test/endpoints.sh index 42de548..214b1c7 100755 --- a/test/endpoints.sh +++ b/test/endpoints.sh @@ -3,7 +3,9 @@ set -e set -x sleep 5 -curl -X GET http://127.0.0.1:8008/price?name=CAKE&unit=USD -curl -X GET http://127.0.0.1:8008/pair?one=ETH&two=CAKE&multiplier=4.0 -curl -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' http://127.0.0.1:8008/addalert -#curl -X POST +curl -X GET http://localhost:8008/price?name=CAKE&unit=USD +curl -X GET http://localhost:8008/pair?one=ETH&two=CAKE&multiplier=4.0 +curl -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' http://localhost:8008/addalert +# curl -X GET http://127.0.0.1:8008/price?name=CAKE&unit=USD +# curl -X GET http://127.0.0.1:8008/pair?one=ETH&two=CAKE&multiplier=4.0 +# curl -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' http://127.0.0.1:8008/addalert -- cgit v1.2.3