Support retrieving the server version via REST
The Gerrit server version can now be retrieved by GET on /config/server/version. Change-Id: Id784ff9af13c2327100acefe2d737a0243483204 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
committed by
Edwin Kempin
parent
ba149cefc0
commit
f2e3fe63f4
@@ -26,5 +26,6 @@ public class Module extends RestApiModule {
|
||||
DynamicMap.mapOf(binder(), CONFIG_KIND);
|
||||
DynamicMap.mapOf(binder(), CAPABILITY_KIND);
|
||||
child(CONFIG_KIND, "capabilities").to(CapabilitiesCollection.class);
|
||||
get(CONFIG_KIND, "version").to(GetVersion.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user