diff options
author | terminaldweller <thabogre@gmail.com> | 2021-07-22 04:13:42 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-07-22 04:13:42 +0000 |
commit | b9a191dce93c5b5d6825c14d2ad336914ff4ef86 (patch) | |
tree | de7048f25c30eb4206961c5d85976ed1a96c8458 /api | |
parent | want to switch to grpc for the telegram bot. obviously take the telegram bot ... (diff) | |
download | hived-b9a191dce93c5b5d6825c14d2ad336914ff4ef86.tar.gz hived-b9a191dce93c5b5d6825c14d2ad336914ff4ef86.zip |
go mod update and postman update [ci skip]
Diffstat (limited to 'api')
-rw-r--r-- | api/hived.postman_collection.json | 90 |
1 files changed, 85 insertions, 5 deletions
diff --git a/api/hived.postman_collection.json b/api/hived.postman_collection.json index 26ad78f..f025c5b 100644 --- a/api/hived.postman_collection.json +++ b/api/hived.postman_collection.json @@ -43,7 +43,7 @@ "method": "GET", "header": [], "url": { - "raw": "http://127.0.0.1:8008/pair?one=ETH&two=CAKE&multiplier=4.0", + "raw": "http://127.0.0.1:8008/pair?one=BNB&two=CAKE&multiplier=41.56", "protocol": "http", "host": [ "127", @@ -58,7 +58,7 @@ "query": [ { "key": "one", - "value": "ETH" + "value": "BNB" }, { "key": "two", @@ -66,7 +66,7 @@ }, { "key": "multiplier", - "value": "4.0" + "value": "41.56" } ] } @@ -100,12 +100,92 @@ "response": [] }, { + "name": "alert-put", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\":\"alert4\",\r\n \"expr\":\"ETH<CAKE\"\r\n}" + }, + "url": { + "raw": "http://127.0.0.1:8008/alert", + "protocol": "http", + "host": [ + "127", + "0", + "0", + "1" + ], + "port": "8008", + "path": [ + "alert" + ] + } + }, + "response": [] + }, + { + "name": "alert-patch", + "request": { + "method": "PATCH", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"name\":\"alert4\",\r\n \"expr\":\"ETH==CAKE\"\r\n}" + }, + "url": { + "raw": "http://127.0.0.1:8008/alert", + "protocol": "http", + "host": [ + "127", + "0", + "0", + "1" + ], + "port": "8008", + "path": [ + "alert" + ] + } + }, + "response": [] + }, + { "name": "alert-delete", "request": { "method": "DELETE", "header": [], "url": { - "raw": "http://127.0.0.1:8008/alert?id=alert4", + "raw": "http://127.0.0.1:8008/alert?key=alert4", + "protocol": "http", + "host": [ + "127", + "0", + "0", + "1" + ], + "port": "8008", + "path": [ + "alert" + ], + "query": [ + { + "key": "key", + "value": "alert4" + } + ] + } + }, + "response": [] + }, + { + "name": "alert-get", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://127.0.0.1:8008/alert?key=alert4", "protocol": "http", "host": [ "127", @@ -119,7 +199,7 @@ ], "query": [ { - "key": "id", + "key": "key", "value": "alert4" } ] |