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 <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2017-04-25 11:04:28 +02:00
parent 9159985f93
commit 2ee52f853e
2 changed files with 3 additions and 3 deletions

View File

@@ -141,7 +141,7 @@ As result a link:#server-info[ServerInfo] entity is returned.
[[check-consistency]] [[check-consistency]]
=== Check Consistency === Check Consistency
-- --
'POST /config/server/check' 'POST /config/server/check.consistency'
-- --
Runs consistency checks and returns detected problems. Runs consistency checks and returns detected problems.
@@ -152,7 +152,7 @@ link:#consistency-check-input[ConsistencyCheckInput] entity.
.Request .Request
---- ----
POST /config/server/check HTTP/1.0 POST /config/server/check.consistency HTTP/1.0
Content-Type: application/json; charset=UTF-8 Content-Type: application/json; charset=UTF-8
{ {

View File

@@ -36,7 +36,7 @@ public class Module extends RestApiModule {
child(CONFIG_KIND, "top-menus").to(TopMenuCollection.class); child(CONFIG_KIND, "top-menus").to(TopMenuCollection.class);
get(CONFIG_KIND, "version").to(GetVersion.class); get(CONFIG_KIND, "version").to(GetVersion.class);
get(CONFIG_KIND, "info").to(GetServerInfo.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); get(CONFIG_KIND, "preferences").to(GetPreferences.class);
put(CONFIG_KIND, "preferences").to(SetPreferences.class); put(CONFIG_KIND, "preferences").to(SetPreferences.class);
get(CONFIG_KIND, "preferences.diff").to(GetDiffPreferences.class); get(CONFIG_KIND, "preferences.diff").to(GetDiffPreferences.class);