diff options
author | Willy Tu <wltu@google.com> | 2022-09-27 08:48:07 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-11-02 20:00:26 +0300 |
commit | ae9031f0e8595ee88945ac565d10be0c3832ed01 (patch) | |
tree | 7cf1c6aa5e91aa80cac6441b5955edb9a355dd54 /redfish-core/lib/cable.hpp | |
parent | 6107da1e94ce2e3b5ea975f13e7410583ecb815f (diff) | |
download | bmcweb-ae9031f0e8595ee88945ac565d10be0c3832ed01.tar.xz |
Update CollectionMembers to use UrlFromPieces
Refactor getCollectionMembers to make sure all Url created with dbus
paths are generated via UrlFromPieces helper function. This allow us to
manage all URL generated from dbus in one place and allow us to make
future changes to affect all resources.
We can make changes to all resources easier if they are all managed by
one function.
Tested:
Redfish Validator Passed. All Collections working as expected and match
previous implmentation.
Change-Id: I5d3b2b32f047ce4f20a2287a36a3e099efd6eace
Signed-off-by: Willy Tu <wltu@google.com>
Diffstat (limited to 'redfish-core/lib/cable.hpp')
-rw-r--r-- | redfish-core/lib/cable.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/cable.hpp b/redfish-core/lib/cable.hpp index 0b8cd0fb8f..89f41e287b 100644 --- a/redfish-core/lib/cable.hpp +++ b/redfish-core/lib/cable.hpp @@ -179,7 +179,7 @@ inline void requestRoutesCableCollection(App& app) asyncResp->res.jsonValue["Description"] = "Collection of Cable Entries"; collection_util::getCollectionMembers( - asyncResp, "/redfish/v1/Cables", + asyncResp, boost::urls::url("/redfish/v1/Cables"), {"xyz.openbmc_project.Inventory.Item.Cable"}); }); } |