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:
@@ -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
|
||||
|
||||
{
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user