data/views/redfish-1.0/redfish.1.0.0.sessioncollection.json
{
"@odata.context" : "<%= basepath %>/$metadata#SessionCollection.SessionCollection",
"@odata.id": "<%= url %>",
"@odata.type": "#SessionCollection.SessionCollection",
"Oem": {},
"Name": "Session Collection",
"Members@odata.count": <%= sessions.length %>,
"Members": [
<% sessions.forEach(function(session, i, arr) { %>
{
"@odata.id": "<%= basepath %>/SessionService/Sessions/<%= session.id %>"
}
<%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %>
<% }); %>
]
}