Skip to content

Instantly share code, notes, and snippets.

@hburgund
Last active October 7, 2017 14:53
Show Gist options
  • Save hburgund/e0cbf959204d83ab88c95cf0d31a0673 to your computer and use it in GitHub Desktop.
Save hburgund/e0cbf959204d83ab88c95cf0d31a0673 to your computer and use it in GitHub Desktop.
proposed response format from new api/2/projects/:id/uiconfig/ endpoint
{
"speak": [
{
"select": "single",
"group_short_name": "Gender",
"header_display_text": "What gender are you?",
"display_items": [
{
"id": 8,
"tag_id": 3,
"parent_id": null,
"default_state": false,
"tag_display_text": "Male"
},
{
"id": 9,
"tag_id": 4,
"parent_id": null,
"default_state": false,
"tag_display_text": "Female"
}
]
},
{
"select": "single",
"group_short_name": "Age",
"header_display_text": "Choose Your Age Group.",
"display_items": [
{
"id": 11,
"tag_id": 2,
"parent_id": 9,
"default_state": false,
"tag_display_text": "Adult"
},
{
"id": 518,
"tag_id": 2,
"parent_id": 8,
"default_state": false,
"tag_display_text": "Adult"
},
{
"id": 10,
"tag_id": 1,
"parent_id": 9,
"default_state": false,
"tag_display_text": "Child"
},
{
"id": 517,
"tag_id": 1,
"parent_id": 8,
"default_state": false,
"tag_display_text": "Child"
}
]
},
{
"select": "single",
"group_short_name": "Question",
"header_display_text": "Choose a Question.",
"display_items": [
{
"id": 13,
"tag_id": 6,
"parent_id": null,
"default_state": false,
"tag_display_text": "What did you eat today?"
},
{
"id": 515,
"tag_id": 270,
"parent_id": 11,
"default_state": false,
"tag_display_text": "This is a question for adults."
},
{
"id": 516,
"tag_id": 271,
"parent_id": 11,
"default_state": false,
"tag_display_text": "This is a question for females."
},
{
"id": 519,
"tag_id": 270,
"parent_id": 518,
"default_state": false,
"tag_display_text": "This is a question for adults."
},
{
"id": 520,
"tag_id": 271,
"parent_id": 10,
"default_state": false,
"tag_display_text": "This is a question for females."
},
{
"id": 514,
"tag_id": 269,
"parent_id": 517,
"default_state": false,
"tag_display_text": "This is a question for boys."
}
]
}
],
"listen": [
{
"select": "min_one",
"group_short_name": "Gender",
"header_display_text": "What Gender(s)?",
"display_items": [
{
"id": 79,
"tag_id": 3,
"parent_id": null,
"default_state": true,
"tag_display_text": "Male"
},
{
"id": 164,
"tag_id": 4,
"parent_id": null,
"default_state": true,
"tag_display_text": "Female"
}
]
},
{
"select": "min_one",
"group_short_name": "Age",
"header_display_text": "What Age Group(s)?",
"display_items": [
{
"id": 165,
"tag_id": 1,
"parent_id": null,
"default_state": true,
"tag_display_text": "Child"
},
{
"id": 166,
"tag_id": 2,
"parent_id": null,
"default_state": true,
"tag_display_text": "Adult"
}
]
},
{
"select": "min_one",
"group_short_name": "Question",
"header_display_text": "What Question(s)?",
"display_items": [
{
"id": 168,
"tag_id": 6,
"parent_id": null,
"default_state": true,
"tag_display_text": "What did you eat today?"
},
{
"id": 169,
"tag_id": 270,
"parent_id": null,
"default_state": true,
"tag_display_text": "This is a question for adults."
},
{
"id": 169,
"tag_id": 269,
"parent_id": null,
"default_state": true,
"tag_display_text": "This is a question for boys."
},
{
"id": 170,
"tag_id": 271,
"parent_id": null,
"default_state": true,
"tag_display_text": "This is a question for females."
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment