on-http-y1
Version:
OnRack Http Server
16 lines • 562 B
JSON
{
"@odata.context" : "<%= basepath %>/$metadata#SessionService/Sessions/$entity",
"@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 ) ? ',': '' %>
<% }); %>
]
}