Skip to content

Instantly share code, notes, and snippets.

@hburgund
Created March 9, 2016 20:00
Show Gist options
  • Save hburgund/4800f4db1e06cf3a613d to your computer and use it in GitHub Desktop.
Save hburgund/4800f4db1e06cf3a613d to your computer and use it in GitHub Desktop.
Sample results from proposed new uigroups endpoint: http://devapi.digita11y.org/api/2/projects/1/uigroups/?session_id=1
{"ui_groups":[
{
"ui_mode": "listen",
"name": "exhibition",
"header_text_loc": "Which exhibition?",
"select": "single",
"active": True,
"index": 0,
"tag_category": 1,
"project": 1,
"ui_items": [ {
"id": 1000,
"tag_id": 10,
"index": 0,
"default": False,
"active": True,
"parent": null
},
{
"id": 1100,
"tag_id": 11,
"index": 1,
"default": False,
"active": True,
"parent": null
},
{
"id": 1200,
"tag_id": 12,
"index": 2,
"default": False,
"active": True,
"parent": null
} ]
},
{
"ui_mode": "listen",
"name": "room",
"header_text_loc": "What room?",
"select": "single",
"active": True,
"index": 1,
"tag_category": 2,
"project": 1,
"ui_items": [ {
"id": 2000,
"tag_id": 20,
"index": 0,
"default": True,
"active": True,
"parent": 1000
},
{
"id": 2100,
"tag_id": 21,
"index": 1,
"default": True,
"active": True,
"parent": 1000
} ]
},
{
"ui_mode": "listen",
"name": "object",
"header_text_loc": "What do you want to listen to?",
"select": "single",
"active": True,
"index": 2,
"tag_category": 3,
"project": 1,
"ui_items": [ {
"id": 3000,
"tag_id": 30,
"index": 0,
"default": False,
"active": True,
"parent": 2000
},
{
"id": 3100,
"tag_id": 31,
"index": 1,
"default": False,
"active": True,
"parent": 2000
},
{
"id": 3200,
"tag_id": 32,
"index": 2,
"default": False,
"active": True,
"parent": 2000
},
{
"id": 3300,
"tag_id": 33,
"index": 3,
"default": False,
"active": True,
"parent": 2000
} ]
},
{
"ui_mode": "speak",
"name": "gender",
"header_text_loc": "What gender are you?",
"select": "single",
"active": True,
"index": 0,
"tag_category": 4,
"project": 1,
"ui_items": [ {
"id": 4000,
"tag_id": 40,
"index": 0,
"default": False,
"active": True,
"parent": null
},
{
"id": 4100,
"tag_id": 41,
"index": 1,
"default": False,
"active": True,
"parent": null
} ]
},
{
"ui_mode": "speak",
"name": "prompt",
"header_text_loc": "What do you want to talk about?",
"select": "single",
"active": True,
"index": 1,
"tag_category": 5,
"project": 1,
"ui_items": [ {
"id": 5000,
"tag_id": 50,
"index": 0,
"default": False,
"active": True,
"parent": null
},
{
"id": 5100,
"tag_id": 51,
"index": 1,
"default": False,
"active": True,
"parent": 4000
},
{
"id": 5200,
"tag_id": 52,
"index": 2,
"default": False,
"active": True,
"parent": 4100
} ]
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment