CORD Subscriber GUI -- Added sample JSON for driving the GUI, based on current assumptions.
Change-Id: I5286b54d1336415701250f0dc800637bf707b2c0
Showing
6 changed files
with
163 additions
and
8 deletions
1 | +{ | ||
2 | + "bundle": { | ||
3 | + "name": "Family Bundle", | ||
4 | + "functions": [ | ||
5 | + { | ||
6 | + "id": "internet", | ||
7 | + "name": "Internet", | ||
8 | + "active": true, | ||
9 | + "editable": false | ||
10 | + }, | ||
11 | + { | ||
12 | + "id": "firewall", | ||
13 | + "name": "Firewall", | ||
14 | + "active": true, | ||
15 | + "editable": true | ||
16 | + }, | ||
17 | + { | ||
18 | + "id": "url_filter", | ||
19 | + "name": "Parental Control", | ||
20 | + "level": "PG", | ||
21 | + "levels": [ "PG", "PG-13", "R" ], | ||
22 | + "active": true, | ||
23 | + "editable": true | ||
24 | + } | ||
25 | + ] | ||
26 | + } | ||
27 | +} |
1 | +{ | ||
2 | + "bundle": { | ||
3 | + "name": "Basic Bundle", | ||
4 | + "functions": [ | ||
5 | + { | ||
6 | + "id": "internet", | ||
7 | + "name": "Internet", | ||
8 | + "active": true | ||
9 | + }, | ||
10 | + { | ||
11 | + "id": "firewall", | ||
12 | + "name": "Firewall", | ||
13 | + "active": true | ||
14 | + } | ||
15 | + ] | ||
16 | + }, | ||
17 | + "users": [ | ||
18 | + { "id": 1, "name": "Mom", "role": "Admin" }, | ||
19 | + { "id": 2, "name": "Dad", "role": "Admin" }, | ||
20 | + { "id": 3, "name": "Dick", "role": "User" }, | ||
21 | + { "id": 4, "name": "Jane", "role": "User" } | ||
22 | + ] | ||
23 | +} |
1 | { | 1 | { |
2 | "bundle": { | 2 | "bundle": { |
3 | "name": "Family Bundle", | 3 | "name": "Family Bundle", |
4 | - "services": [ | 4 | + "functions": [ |
5 | - "Internet", | 5 | + { |
6 | - "Firewall", | 6 | + "id": "internet", |
7 | - "URL Filtering" | 7 | + "name": "Internet", |
8 | + "active": true | ||
9 | + }, | ||
10 | + { | ||
11 | + "id": "firewall", | ||
12 | + "name": "Firewall", | ||
13 | + "active": true | ||
14 | + }, | ||
15 | + { | ||
16 | + "id": "url_filter", | ||
17 | + "name": "Parental Control", | ||
18 | + "level": "PG", | ||
19 | + "active": true | ||
20 | + } | ||
8 | ] | 21 | ] |
9 | }, | 22 | }, |
10 | "users": [ | 23 | "users": [ |
11 | - { "name": "Dad", "role": "Admin" }, | 24 | + { "id": 1, "name": "Mom", "role": "Admin" }, |
12 | - { "name": "Mom", "role": "Admin" }, | 25 | + { "id": 2, "name": "Dad", "role": "Admin" }, |
13 | - { "name": "Dick", "role": "User" }, | 26 | + { "id": 3, "name": "Dick", "role": "User" }, |
14 | - { "name": "Jane", "role": "User" } | 27 | + { "id": 4, "name": "Jane", "role": "User" } |
15 | ] | 28 | ] |
16 | } | 29 | } | ... | ... |
1 | +{ | ||
2 | + "users": [ | ||
3 | + { | ||
4 | + "id": 1, | ||
5 | + "name": "Mom", | ||
6 | + "role": { "id": "admin", "name": "Admin"}, | ||
7 | + "profile": { } | ||
8 | + }, | ||
9 | + { | ||
10 | + "id": 2, | ||
11 | + "name": "Dad", | ||
12 | + "role": { "id": "admin", "name": "Admin"} | ||
13 | + "profile": { } | ||
14 | + }, | ||
15 | + { | ||
16 | + "id": 3, | ||
17 | + "name": "Dick", | ||
18 | + "role": { "id": "user", "name": "User"} | ||
19 | + "profile": { } | ||
20 | + }, | ||
21 | + { | ||
22 | + "id": 4, | ||
23 | + "name": "Jane", | ||
24 | + "role": { "id": "user", "name": "User"} | ||
25 | + "profile": { } | ||
26 | + } | ||
27 | + ] | ||
28 | +} |
1 | +{ | ||
2 | + "users": [ | ||
3 | + { | ||
4 | + "id": 1, | ||
5 | + "name": "Mom", | ||
6 | + "role": { "id": "admin", "name": "Admin"}, | ||
7 | + "profile": { | ||
8 | + "url_filter": { | ||
9 | + "enabled": false | ||
10 | + } | ||
11 | + } | ||
12 | + }, | ||
13 | + { | ||
14 | + "id": 2, | ||
15 | + "name": "Dad", | ||
16 | + "role": { "id": "admin", "name": "Admin"}, | ||
17 | + "profile": { | ||
18 | + "url_filter": { | ||
19 | + "enabled": false | ||
20 | + } | ||
21 | + } | ||
22 | + }, | ||
23 | + { | ||
24 | + "id": 3, | ||
25 | + "name": "Dick", | ||
26 | + "role": { "id": "user", "name": "User"}, | ||
27 | + "profile": { | ||
28 | + "url_filter": { | ||
29 | + "enabled": false | ||
30 | + } | ||
31 | + } | ||
32 | + }, | ||
33 | + { | ||
34 | + "id": 4, | ||
35 | + "name": "Jane", | ||
36 | + "role": { "id": "user", "name": "User"}, | ||
37 | + "profile": { | ||
38 | + "url_filter": { | ||
39 | + "enabled": false, | ||
40 | + "level": "PG" | ||
41 | + } | ||
42 | + } | ||
43 | + } | ||
44 | + ] | ||
45 | +} |
-
Please register or login to post a comment