Skip to content

Instantly share code, notes, and snippets.

@tleffler
Created November 22, 2014 00:58
Show Gist options
  • Save tleffler/0c74c0bceae68a313fdd to your computer and use it in GitHub Desktop.
Save tleffler/0c74c0bceae68a313fdd to your computer and use it in GitHub Desktop.
heterogeneous collection in a Cj document - a course evaluation
{
"collection" : {
"version" : "1.0",
"href" : "/api/v1/evaluation/123",
"links" : [
{ "href" : "/api/v1", "rel" : "home", "prompt" : "API V1" }
],
"items" : [
{
"href" : "/api/v1/evaluation/123",
"data" : [
{"name" : "_itemType", "value" : "evaluation"},
{"name" : "_itemId", "value" : "1"},
{"name" : "_childItemId", "value" : "2"},
{"name" : "_childItemId", "value" : "3"},
{"name" : "id", "value" : "123"},
{"name" : "deliveryMethod", "value" : "Online", "prompt": "Delivery Method"},
{"name" : "status", "value" : "Pending", "prompt" : "Status"},
{"name" : "startDate", "value" : "2014-12-10T14:00:00Z", "prompt" : "Start Date & Time"},
{"name" : "endDate", "value" : "2014-12-18T06:59:59Z", "prompt" : "End Date & Time"}
]
},
{
"data" : [
{"name" : "_itemType", "value": "instructor"},
{"name" : "_itemId", "value": "2"},
{"name" : "firstName", "value": "Alastor"},
{"name" : "lastName", "value": "Moody"}
]
},
{
"data": [
{"name" : "_itemType", "value" : "section"},
{"name" : "_itemId", "value" : "3"},
{"name" : "curriculum_abbreviation", "value" : "BIOL"},
{"name" : "course_number", "value" : "401"},
{"name" : "section_id", "value" : "A"},
{"name" : "title", "value" : "Advanced Cell Biology"}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment