data/views/redfish-1.0/redfish.1.0.0.computersystemcollection.json
{
"@odata.context" : "<%= basepath %>/$metadata#ComputerSystemCollection.ComputerSystemCollection",
"@odata.id": "<%= url %>",
"@odata.type": "#ComputerSystemCollection.ComputerSystemCollection",
"Oem" : {},
"Name": "Computer System Collection",
"Members@odata.count": <%= nodes.length %>,
"Members": [
<% nodes.forEach(function(node, i, arr) { %>
{
<% if (node.obms[0] !== undefined && node.obms[0].service === 'redfish-obm-service')
{%>
"@odata.id": "<%= basepath %>/Systems/<%= node.identifiers[2] %>"
<%} else {%>
"@odata.id": "<%= basepath %>/Systems/<%= node.id %>"
<%}%>
}
<%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %>
<% }); %>
]
}