From b7e31f3ad497483b93549d7bbcbe610fb33127e5 Mon Sep 17 00:00:00 2001 From: invin12 <140all@mail.ru> Date: Mon, 27 Aug 2018 10:06:02 +0300 Subject: [PATCH 1/2] Update api.md Fix leader API endpoint --- docs/docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/api.md b/docs/docs/api.md index 0cfd270db..8fc820256 100644 --- a/docs/docs/api.md +++ b/docs/docs/api.md @@ -35,9 +35,9 @@ The leader is the only node that responds to API requests, but if you attempt to To get the current leader you can hit the following endpoint. -* Endpoint: __/leader__ +* Endpoint: __/v1/scheduler/leader__ * Method: __GET__ -* Example: `curl -L chronos-node:8080/leader` +* Example: `curl -L chronos-node:8080/v1/schedulerleader` * Response: A JSON dict containing a single `leader` key. ## Listing Jobs From 97e39fcbed24e7f9b5210d5753deda1bc4a24028 Mon Sep 17 00:00:00 2001 From: invin12 <140all@mail.ru> Date: Mon, 27 Aug 2018 10:07:18 +0300 Subject: [PATCH 2/2] Update api.md --- docs/docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/api.md b/docs/docs/api.md index 8fc820256..3ac883b3d 100644 --- a/docs/docs/api.md +++ b/docs/docs/api.md @@ -37,7 +37,7 @@ To get the current leader you can hit the following endpoint. * Endpoint: __/v1/scheduler/leader__ * Method: __GET__ -* Example: `curl -L chronos-node:8080/v1/schedulerleader` +* Example: `curl -L chronos-node:8080/v1/scheduler/leader` * Response: A JSON dict containing a single `leader` key. ## Listing Jobs