diff options
author | Ravi Teja <raviteja28031990@gmail.com> | 2021-07-23 09:57:01 +0300 |
---|---|---|
committer | Ravi Teja <raviteja28031990@gmail.com> | 2021-07-23 09:57:34 +0300 |
commit | 9d41aec68bc35dd6e7ae6c34f3678f38377f8731 (patch) | |
tree | b8aa965f1ce78d16fa485bb62ca0aa88d33e6b59 /redfish-core/lib/event_service.hpp | |
parent | f5ffd8062e556cb3bdf5f441dd393e784b771e85 (diff) | |
download | bmcweb-9d41aec68bc35dd6e7ae6c34f3678f38377f8731.tar.xz |
Fix EventService Subscriptions URI
GET on subscriptions URI returns NotFound error
this commit fixes URI issues
Tested by:
GET https://${bmc}/redfish/v1/EventService/Subscriptions/3800595217
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
Change-Id: I2952694e4786dc78248335559c8aec795bfabd6e
Diffstat (limited to 'redfish-core/lib/event_service.hpp')
-rw-r--r-- | redfish-core/lib/event_service.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/lib/event_service.hpp b/redfish-core/lib/event_service.hpp index 1330438d92..98c67c66f6 100644 --- a/redfish-core/lib/event_service.hpp +++ b/redfish-core/lib/event_service.hpp @@ -488,7 +488,7 @@ inline void requestRoutesEventDestinationCollection(App& app) inline void requestRoutesEventDestination(App& app) { - BMCWEB_ROUTE(app, "redfish/v1/EventService/Subscriptions/<str>/") + BMCWEB_ROUTE(app, "/redfish/v1/EventService/Subscriptions/<str>/") .privileges(redfish::privileges::getEventDestination) .methods(boost::beast::http::verb::get)( [](const crow::Request&, @@ -540,7 +540,7 @@ inline void requestRoutesEventDestination(App& app) }); /////redfish/v1/EventService/Subscriptions/ // ConfigureManager - BMCWEB_ROUTE(app, "redfish/v1/EventService/Subscriptions/<str>/") + BMCWEB_ROUTE(app, "/redfish/v1/EventService/Subscriptions/<str>/") // The below privilege is wrong, it should be ConfigureManager OR // ConfigureSelf // TODO(ed) follow up with DMTF spec and understand ConfigureSelf @@ -597,7 +597,7 @@ inline void requestRoutesEventDestination(App& app) EventServiceManager::getInstance().updateSubscriptionData(); }); - BMCWEB_ROUTE(app, "redfish/v1/EventService/Subscriptions/<str>/") + BMCWEB_ROUTE(app, "/redfish/v1/EventService/Subscriptions/<str>/") // The below privilege is wrong, it should be ConfigureManager OR // ConfigureSelf //.privileges(redfish::privileges::deleteEventDestination) |