Skip to content

Instantly share code, notes, and snippets.

@scytacki
Created March 10, 2016 22:03
Show Gist options
  • Save scytacki/60d2763d2f2c38950838 to your computer and use it in GitHub Desktop.
Save scytacki/60d2763d2f2c38950838 to your computer and use it in GitHub Desktop.
Example report api response
{
"report": {
"id": 765,
"type": "Activity",
"name": "HAS Activity Dashboard Test 2",
"children": [
{
"id": 2093,
"type": "Section",
"name": "HAS Activity Dashboard Test 2 Section",
"children": [
{
"id": 11208,
"type": "Page",
"name": "Queen arg block",
"children": [
{
"id": 1648,
"name": "Multiple Choice Question element",
"description": "description ...",
"prompt": "Queen",
"enable_rationale": false,
"rationale_prompt": "Explain your choice. Give specific examples.",
"allow_multiple_selection": null,
"is_required": false,
"key": "Embeddable::MultipleChoice|1648",
"type": "Embeddable::MultipleChoice",
"children": [
{
"answer": [
{
"choice": "a Bohemiam Rhapsody",
"is_correct": false
}
],
"answered": true,
"submitted": true,
"question_required": false,
"is_correct": false,
"type": "Embeddable::MultipleChoice",
"embeddable_key": "Embeddable::MultipleChoice|1648",
"student_id": 70
}
],
"choices": [
{
"id": 5877,
"choice": "a Bohemiam Rhapsody",
"is_correct": false
},
{
"id": 5878,
"choice": "b Fat Bottomed Girls",
"is_correct": true
},
{
"id": 5879,
"choice": "c We are the Champions",
"is_correct": false
}
]
},
{
"id": 4935,
"name": "Open Response Question",
"description": "What is the purpose of this question ...?",
"prompt": "Explain your answer.",
"default_response": "",
"rows": 5,
"columns": 32,
"font_size": 12,
"is_required": false,
"key": "Embeddable::OpenResponse|4935",
"type": "Embeddable::OpenResponse",
"children": [
{
"answer": "Something",
"answered": true,
"submitted": true,
"question_required": false,
"type": "Embeddable::OpenResponse",
"embeddable_key": "Embeddable::OpenResponse|4935",
"student_id": 70
}
]
},
{
"id": 1649,
"name": "Multiple Choice Question element",
"description": "description ...",
"prompt": "How certain are you about your claim based on your explanation?",
"enable_rationale": false,
"rationale_prompt": "Explain your choice. Give specific examples.",
"allow_multiple_selection": null,
"is_required": false,
"key": "Embeddable::MultipleChoice|1649",
"type": "Embeddable::MultipleChoice",
"children": [
{
"answer": [
{
"choice": "(5) Very certain",
"is_correct": null
}
],
"answered": true,
"submitted": true,
"question_required": false,
"is_correct": true,
"type": "Embeddable::MultipleChoice",
"embeddable_key": "Embeddable::MultipleChoice|1649",
"student_id": 70
}
],
"choices": [
{
"id": 5880,
"choice": "(1) Not at all certain",
"is_correct": null
},
{
"id": 5881,
"choice": "(2)",
"is_correct": null
},
{
"id": 5882,
"choice": "(3)",
"is_correct": null
},
{
"id": 5883,
"choice": "(4)",
"is_correct": null
},
{
"id": 5884,
"choice": "(5) Very certain",
"is_correct": null
}
]
},
{
"id": 4936,
"name": "Open Response Question",
"description": "What is the purpose of this question ...?",
"prompt": "Explain what influenced your certainty rating.",
"default_response": "",
"rows": 5,
"columns": 32,
"font_size": 12,
"is_required": false,
"key": "Embeddable::OpenResponse|4936",
"type": "Embeddable::OpenResponse",
"children": [
{
"answer": "Music",
"answered": true,
"submitted": true,
"question_required": false,
"type": "Embeddable::OpenResponse",
"embeddable_key": "Embeddable::OpenResponse|4936",
"student_id": 70
}
]
}
]
}
]
}
]
},
"class": {
"name": "Scotts Test Class",
"students": [
{
"id": 1,
"name": "Alfred Robert",
"started_offering": false
},
{
"id": 42,
"name": "Jen Student",
"started_offering": false
},
{
"id": 43,
"name": "Jen Studenty",
"started_offering": false
},
{
"id": 70,
"name": "Scott Cytacki",
"started_offering": true
},
{
"id": 71,
"name": "Scott Cytacki",
"started_offering": false
},
{
"id": 145,
"name": "Scott Student",
"started_offering": false
}
]
},
"visibility_filter": {
"active": true,
"questions": []
},
"anonymous_report": false,
"is_offering_external": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment