diff options
| author | Lewanczyk, Dawid <dawid.lewanczyk@intel.com> | 2018-01-25 11:30:19 +0100 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2018-03-06 22:34:47 +0000 |
| commit | 4e49bd4bd5a4e0626e437165f1eafb7c8a8fa3a6 (patch) | |
| tree | 6cd46fa9f0341979f52feefaae78bf970346b951 /include | |
| parent | 3f2e8185c6b0c2b2e9a4d30f9e6988bd2fb4c7c9 (diff) | |
| download | bmcweb-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.hpp | 36 |
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) { |

