RackHD/on-http

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

Summary

Maintainability
Test Coverage
{
    "@odata.context" : "<%= basepath %>/$metadata#TaskCollection.TaskCollection",
    "@odata.id": "<%= url %>",
    "@odata.type": "#TaskCollection.TaskCollection",
    "Oem" : {},
    "Name": "Task Collection",
    "Members@odata.count": <%= graphs.length %>,
    "Members": [
    <% graphs.forEach(function(graph, i, arr) { %>
        {
            "@odata.id": "<%= basepath %>/TaskService/Tasks/<%=graph.id%>"
        }
        <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %>
    <% }); %>
    ]
}