on-http-y1
Version:
OnRack Http Server
19 lines • 536 B
JSON
{
"@odata.context" : "<%= basepath %>/$metadata#Roles",
"@odata.type": "#RoleCollection.RoleCollection",
"Oem": {},
"Members@odata.navigationLink": {
"@odata.id": "<%= basepath %>/AccountService/Roles"
},
"Members@odata.count": <%= (roles.length) %>,
"Members":[
<% roles.forEach(function(role, i, arr) { %>
{
"@odata.id": "<%= basepath %>/AccountService/Roles/<%= roles[i] %>"
}
<%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %>
<% }); %>
],
"Name": "RoleCollection",
"Description": "RoleCollection"
}