diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2020-02-20 01:12:22 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-02-20 22:40:47 +0300 |
commit | dcf46d44f3619baae046d9b545b34c9f55d56de9 (patch) | |
tree | 7886240de6aecd70d6894a0427a0d9fa96df23d2 /redfish-core/lib/update_service.hpp | |
parent | 70c616d645bbff953e1a24c2dfaac34cf6413606 (diff) | |
download | bmcweb-dcf46d44f3619baae046d9b545b34c9f55d56de9.tar.xz |
Update service: 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: I0dbf424c8fb91f448da19ce12b0dadb512880204
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/update_service.hpp')
-rw-r--r-- | redfish-core/lib/update_service.hpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp index 048430d063..00e166eddb 100644 --- a/redfish-core/lib/update_service.hpp +++ b/redfish-core/lib/update_service.hpp @@ -340,8 +340,6 @@ class UpdateService : public Node std::shared_ptr<AsyncResp> aResp = std::make_shared<AsyncResp>(res); res.jsonValue["@odata.type"] = "#UpdateService.v1_4_0.UpdateService"; res.jsonValue["@odata.id"] = "/redfish/v1/UpdateService"; - res.jsonValue["@odata.context"] = - "/redfish/v1/$metadata#UpdateService.UpdateService"; res.jsonValue["Id"] = "UpdateService"; res.jsonValue["Description"] = "Service for Software Update"; res.jsonValue["Name"] = "Update Service"; @@ -524,9 +522,6 @@ class SoftwareInventoryCollection : public Node "#SoftwareInventoryCollection.SoftwareInventoryCollection"; res.jsonValue["@odata.id"] = "/redfish/v1/UpdateService/FirmwareInventory"; - res.jsonValue["@odata.context"] = - "/redfish/v1/" - "$metadata#SoftwareInventoryCollection.SoftwareInventoryCollection"; res.jsonValue["Name"] = "Software Inventory Collection"; crow::connections::systemBus->async_method_call( @@ -772,8 +767,6 @@ class SoftwareInventory : public Node } asyncResp->res.jsonValue["@odata.type"] = "#SoftwareInventory.v1_1_0.SoftwareInventory"; - asyncResp->res.jsonValue["@odata.context"] = - "/redfish/v1/$metadata#SoftwareInventory.SoftwareInventory"; asyncResp->res.jsonValue["Name"] = "Software Inventory"; asyncResp->res.jsonValue["Status"]["HealthRollup"] = "OK"; |