summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLewanczyk, Dawid <dawid.lewanczyk@intel.com>2018-01-25 11:30:19 +0100
committerEd Tanous <ed.tanous@intel.com>2018-03-06 22:34:47 +0000
commit4e49bd4bd5a4e0626e437165f1eafb7c8a8fa3a6 (patch)
tree6cd46fa9f0341979f52feefaae78bf970346b951 /include
parent3f2e8185c6b0c2b2e9a4d30f9e6988bd2fb4c7c9 (diff)
downloadbmcweb-4e49bd4bd5a4e0626e437165f1eafb7c8a8fa3a6.tar.gz
bmcweb-4e49bd4bd5a4e0626e437165f1eafb7c8a8fa3a6.zip
Roles
Move roles and roles collection to new class based implementation Change-Id: I70f39bf8289fb45483a1e7f2c4eb3dbc1c7a7090 Signed-off-by: Lewanczyk, Dawid <dawid.lewanczyk@intel.com> Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/redfish_v1.hpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/include/redfish_v1.hpp b/include/redfish_v1.hpp
index 3aecae0..e32be23 100644
--- a/include/redfish_v1.hpp
+++ b/include/redfish_v1.hpp
@@ -102,42 +102,6 @@ void request_routes(Crow<Middlewares...>& app) {
res.end();
});
- CROW_ROUTE(app, "/redfish/v1/AccountService/Roles/")
- .methods("GET"_method)(
- [&](const crow::request& req, crow::response& res) {
- res.json_value = {
- {"@odata.context",
- "/redfish/v1/$metadata#RoleCollection.RoleCollection"},
- {"@odata.id", "/redfish/v1/AccountService/Roles"},
- {"@odata.type", "#RoleCollection.RoleCollection"},
- {"Name", "Account Service"},
- {"Description", "BMC User Roles"},
- {"Members@odata.count", 1},
- {"Members",
- {{"@odata.id",
- "/redfish/v1/AccountService/Roles/Administrator"}}}};
- get_redfish_sub_routes(app, "/redfish/v1/AccountService",
- res.json_value);
- res.end();
- });
-
- CROW_ROUTE(app, "/redfish/v1/AccountService/Roles/Administrator/")
- .methods("GET"_method)(
- [&](const crow::request& req, crow::response& res) {
- res.json_value = {
- {"@odata.context", "/redfish/v1/$metadata#Role.Role"},
- {"@odata.id", "/redfish/v1/AccountService/Roles/Administrator"},
- {"@odata.type", "#Role.v1_0_2.Role"},
- {"Id", "Administrator"},
- {"Name", "User Role"},
- {"Description", "Administrator User Role"},
- {"IsPredefined", true},
- {"AssignedPrivileges",
- {"Login", "ConfigureManager", "ConfigureUsers",
- "ConfigureSelf", "ConfigureComponents"}}};
- res.end();
- });
-
CROW_ROUTE(app, "/redfish/v1/AccountService/Accounts/")
.methods(
"GET"_method)([&](const crow::request& req, crow::response& res) {
OpenPOWER on IntegriCloud