summaryrefslogtreecommitdiff
path: root/redfish-core
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2020-04-15 05:54:42 +0300
committerGunnar Mills <gmills@us.ibm.com>2020-04-16 19:52:26 +0300
commitf99c379db62e1c2472d24fe8efe3ae2503ba14d4 (patch)
tree9f19c39a82b0fa1e5fbce969104375e47b0cdbb5 /redfish-core
parentc1e236a6b2b1a6855c34279fb4800d8c5a15dfc2 (diff)
downloadbmcweb-f99c379db62e1c2472d24fe8efe3ae2503ba14d4.tar.xz
SensorCollection: Allow slash at end
Before: curl -k https://${bmc}/redfish/v1/Chassis/chassis/Sensors/ Not Found After both /Sensors/ and /Sensors return the SensorCollection. This follows the pattern in other bmcweb redfish resources and the redfish protocol. Tested: Ran the validator. curl -k https://${bmc}/redfish/v1/Chassis/chassis/Sensors/ { "@odata.id": "/redfish/v1/Chassis/chassis/Sensors", "@odata.type": "#SensorCollection.SensorCollection", "Description": "Collection of Sensors for this Chassis", "Members": [ { Change-Id: Id6ae5b62470c4155e7e17328037b6b2dbe2ab57e Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core')
-rw-r--r--redfish-core/lib/sensors.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/sensors.hpp b/redfish-core/lib/sensors.hpp
index 9061165297..39a815a54c 100644
--- a/redfish-core/lib/sensors.hpp
+++ b/redfish-core/lib/sensors.hpp
@@ -2856,7 +2856,7 @@ class SensorCollection : public Node
{
public:
SensorCollection(CrowApp& app) :
- Node(app, "/redfish/v1/Chassis/<str>/Sensors", std::string())
+ Node(app, "/redfish/v1/Chassis/<str>/Sensors/", std::string())
{
entityPrivileges = {
{boost::beast::http::verb::get, {{"Login"}}},