From ff12756915d452e7b92959062ed6315adf0e424e Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 25 Feb 2021 12:19:18 +0330 Subject: added a new endpoint for changelly. added somewhat decent logging. cleaned up the code a bit. the secrets are all environment variables now since we want publicly availale CI. the api and postman docs are added. added travis integration. --- test/endpoints.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 test/endpoints.sh (limited to 'test') diff --git a/test/endpoints.sh b/test/endpoints.sh new file mode 100755 index 0000000..0c47cd6 --- /dev/null +++ b/test/endpoints.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh +set -e +set -x + +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