diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2020-02-20 01:14:05 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-02-20 22:40:47 +0300 |
commit | f20ee1487881342bba27fc14f66668c7519889c3 (patch) | |
tree | 50837d4a1a9e1be39622f8a941cf7e1e0ed8edbb /redfish-core/lib/systems.hpp | |
parent | dcf46d44f3619baae046d9b545b34c9f55d56de9 (diff) | |
download | bmcweb-f20ee1487881342bba27fc14f66668c7519889c3.tar.xz |
System: Remove odata.context
Redfish made odata.context optional (1.6.0 of DSP0266, Sept 2018).
Redfish has removed odata.context from example payloads in the
specification (1.7.0 of DSP0266), removed it from the mockups,
and Redfish recommended not using.
The reason for making optional and removing from mockups/examples,
"no one could figure out how to use it and it did not add value".
Don't see value in it for our implementation.
Change-Id: Iee73d72d56237e8787e839ed06b979779c97d2f3
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/systems.hpp')
-rw-r--r-- | redfish-core/lib/systems.hpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp index cae0fe8c8d..041d896e74 100644 --- a/redfish-core/lib/systems.hpp +++ b/redfish-core/lib/systems.hpp @@ -1372,9 +1372,6 @@ class SystemsCollection : public Node res.jsonValue["@odata.type"] = "#ComputerSystemCollection.ComputerSystemCollection"; res.jsonValue["@odata.id"] = "/redfish/v1/Systems"; - res.jsonValue["@odata.context"] = - "/redfish/v1/" - "$metadata#ComputerSystemCollection.ComputerSystemCollection"; res.jsonValue["Name"] = "Computer System Collection"; res.jsonValue["Members"] = { {{"@odata.id", "/redfish/v1/Systems/system"}}}; @@ -1572,8 +1569,6 @@ class Systems : public Node const std::vector<std::string> ¶ms) override { res.jsonValue["@odata.type"] = "#ComputerSystem.v1_6_0.ComputerSystem"; - res.jsonValue["@odata.context"] = - "/redfish/v1/$metadata#ComputerSystem.ComputerSystem"; res.jsonValue["Name"] = "Computer System"; res.jsonValue["Id"] = "system"; res.jsonValue["SystemType"] = "Physical"; |