Simon Hunt

CORD Subscriber GUI -- Added sample JSON for driving the GUI, based on current assumptions.

Change-Id: I5286b54d1336415701250f0dc800637bf707b2c0
{
"bundle": {
"name": "Basic Bundle",
"functions": [
{
"id": "internet",
"name": "Internet",
"active": true,
"editable": false
},
{
"id": "firewall",
"name": "Firewall",
"active": true,
"editable": true
}
]
}
}
{
"bundle": {
"name": "Family Bundle",
"functions": [
{
"id": "internet",
"name": "Internet",
"active": true,
"editable": false
},
{
"id": "firewall",
"name": "Firewall",
"active": true,
"editable": true
},
{
"id": "url_filter",
"name": "Parental Control",
"level": "PG",
"levels": [ "PG", "PG-13", "R" ],
"active": true,
"editable": true
}
]
}
}
{
"bundle": {
"name": "Basic Bundle",
"functions": [
{
"id": "internet",
"name": "Internet",
"active": true
},
{
"id": "firewall",
"name": "Firewall",
"active": true
}
]
},
"users": [
{ "id": 1, "name": "Mom", "role": "Admin" },
{ "id": 2, "name": "Dad", "role": "Admin" },
{ "id": 3, "name": "Dick", "role": "User" },
{ "id": 4, "name": "Jane", "role": "User" }
]
}
{
"bundle": {
"name": "Family Bundle",
"services": [
"Internet",
"Firewall",
"URL Filtering"
"functions": [
{
"id": "internet",
"name": "Internet",
"active": true
},
{
"id": "firewall",
"name": "Firewall",
"active": true
},
{
"id": "url_filter",
"name": "Parental Control",
"level": "PG",
"active": true
}
]
},
"users": [
{ "name": "Dad", "role": "Admin" },
{ "name": "Mom", "role": "Admin" },
{ "name": "Dick", "role": "User" },
{ "name": "Jane", "role": "User" }
{ "id": 1, "name": "Mom", "role": "Admin" },
{ "id": 2, "name": "Dad", "role": "Admin" },
{ "id": 3, "name": "Dick", "role": "User" },
{ "id": 4, "name": "Jane", "role": "User" }
]
}
......
{
"users": [
{
"id": 1,
"name": "Mom",
"role": { "id": "admin", "name": "Admin"},
"profile": { }
},
{
"id": 2,
"name": "Dad",
"role": { "id": "admin", "name": "Admin"}
"profile": { }
},
{
"id": 3,
"name": "Dick",
"role": { "id": "user", "name": "User"}
"profile": { }
},
{
"id": 4,
"name": "Jane",
"role": { "id": "user", "name": "User"}
"profile": { }
}
]
}
{
"users": [
{
"id": 1,
"name": "Mom",
"role": { "id": "admin", "name": "Admin"},
"profile": {
"url_filter": {
"enabled": false
}
}
},
{
"id": 2,
"name": "Dad",
"role": { "id": "admin", "name": "Admin"},
"profile": {
"url_filter": {
"enabled": false
}
}
},
{
"id": 3,
"name": "Dick",
"role": { "id": "user", "name": "User"},
"profile": {
"url_filter": {
"enabled": false
}
}
},
{
"id": 4,
"name": "Jane",
"role": { "id": "user", "name": "User"},
"profile": {
"url_filter": {
"enabled": false,
"level": "PG"
}
}
}
]
}