From 2ee52f853e16f8e31b9bf2d24caceaccf13d84c9 Mon Sep 17 00:00:00 2001 From: Edwin Kempin Date: Tue, 25 Apr 2017 11:04:28 +0200 Subject: [PATCH] Rename /config/server/check to /config/server/check.consistency Han-Wen is planning to add another check (/config/server/check.access) and like this both checks can share the same REST endpoint namespace. It's okay to change the name of the REST endpoint, since it wasn't included into any release yet. Change-Id: I61f264bb7faa69577debd83018a9fb2657d30bcd Signed-off-by: Edwin Kempin --- Documentation/rest-api-config.txt | 4 ++-- .../src/main/java/com/google/gerrit/server/config/Module.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/rest-api-config.txt b/Documentation/rest-api-config.txt index fe2025c14d..a0e9954ecf 100644 --- a/Documentation/rest-api-config.txt +++ b/Documentation/rest-api-config.txt @@ -141,7 +141,7 @@ As result a link:#server-info[ServerInfo] entity is returned. [[check-consistency]] === Check Consistency -- -'POST /config/server/check' +'POST /config/server/check.consistency' -- Runs consistency checks and returns detected problems. @@ -152,7 +152,7 @@ link:#consistency-check-input[ConsistencyCheckInput] entity. .Request ---- - POST /config/server/check HTTP/1.0 + POST /config/server/check.consistency HTTP/1.0 Content-Type: application/json; charset=UTF-8 { diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/config/Module.java b/gerrit-server/src/main/java/com/google/gerrit/server/config/Module.java index 612fea2e07..7bf5ad5ce0 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/config/Module.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/config/Module.java @@ -36,7 +36,7 @@ public class Module extends RestApiModule { child(CONFIG_KIND, "top-menus").to(TopMenuCollection.class); get(CONFIG_KIND, "version").to(GetVersion.class); get(CONFIG_KIND, "info").to(GetServerInfo.class); - post(CONFIG_KIND, "check").to(CheckConsistency.class); + post(CONFIG_KIND, "check.consistency").to(CheckConsistency.class); get(CONFIG_KIND, "preferences").to(GetPreferences.class); put(CONFIG_KIND, "preferences").to(SetPreferences.class); get(CONFIG_KIND, "preferences.diff").to(GetDiffPreferences.class);