Rest service root implementation
This commit introduces the following
=> Service root implementation
=> compiler option for the IBM management console specific functionalities
TestedBy:
curl -k -H "X-Auth-Token: $bmc_token" -X GET https://${bmc}/ibm/v1
Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
Change-Id: I2dcb8eee0b69b1723e0cc3d980a5846b3519e7d9
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4bf1673..9d4e4e9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,6 +88,13 @@
The BMCWEB_INSECURE_DISABLE_SSL must be OFF for this option to take effect."
ON
)
+option (
+ BMCWEB_ENABLE_IBM_MANAGEMENT_CONSOLE
+ "Enable the IBM management console specific functionality. Paths are under
+ '/ibm/v1/'."
+ OFF
+)
+
# Insecure options. Every option that starts with a BMCWEB_INSECURE flag should
# not be enabled by default for any platform, unless the author fully
@@ -407,6 +414,8 @@
-DBMCWEB_ENABLE_VALIDATION_UNSECURE_FEATURE>
$<$<BOOL:${BMCWEB_INSECURE_UNRESTRICTED_SENSOR_OVERRIDE}>:
-DBMCWEB_INSECURE_UNRESTRICTED_SENSOR_OVERRIDE>
+ $<$<BOOL:${BMCWEB_ENABLE_IBM_MANAGEMENT_CONSOLE}>:
+ -DBMCWEB_ENABLE_IBM_MANAGEMENT_CONSOLE>
)
# configure and install systemd unit files