RackHD/on-http

View on GitHub
data/views/redfish-1.0/redfish.1.0.0.manageraccountcollection.json

Summary

Maintainability
Test Coverage
{
    "@odata.context" : "<%= basepath %>/$metadata#ManagerAccountCollection.ManagerAccountCollection",
    "@odata.id": "<%= url %>",
    "@odata.type": "#ManagerAccountCollection.ManagerAccountCollection",
    "Oem" : {},
    "Name": "RackHD User Accounts",
    "Members@odata.count": <%= users.length %>,
    "Members": [
        <% users.forEach(function(user, i, arr) { %>
            {
                "@odata.id": "<%= basepath %>/AccountService/Accounts/<%= user.username %>"
            }
            <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %>
        <% }); %>
    ]
}