Skip to content

Instantly share code, notes, and snippets.

@prashanthviva
Created June 16, 2016 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prashanthviva/99b4bdfa61261a0cf0244ddda7e32b5e to your computer and use it in GitHub Desktop.
Save prashanthviva/99b4bdfa61261a0cf0244ddda7e32b5e to your computer and use it in GitHub Desktop.
consumable objective and consumable lessons part of it
{
"assignment": {
"id" : "assignment uuid",
"campaignId" : "campaign uuid",
"campaignVersion" : "camapaign version uuid",
"userId" : "user uuid",
"enterpriseId" : "enterprise uuid",
"assignedBy" : "assigner uuid",
"startDate" : "2016-06-06T00:00:00Z",
"endDate" : "2016-06-10T00:00:00",
"completedAt" : "",
"unassignedAt" : "",
"createdAt" : "2016-06-06T00:00:00Z",
"updatedAt" : "2016-06-06T00:00:00Z"
},
"consumableObjective": {
"consumableId": "consumableId_obj",
"assignmentId": "assignment uuid", // refers to the assignment above
"objectiveId": "objective Id",
"assignmentOrderIndex": 1,
"startDate": "2016-06-06T00:00:00Z", // should never be empty
"targetDate": "2016-06-10T00:00:00Z", // should never be empty
"completedAt": "",
"createdAt": "2016-06-06T00:00:00Z",
"updatedAt": "2016-06-06T00:00:00Z"
},
"consumableLessons": [
{
"consumableId" => "consumableId_lesson_1",
"assignmentId" => "assignment uuid", // referes to the assignment above
"lessonId" => "some lesson Id",
"objectiveConsumableId" => "consumableId_obj", // refers to the consumableObjective above
"assignmentOrderIndex" => 1,
"startDate" => "", // will always be empty (in this iteration)
"targetDate" => "", // will always be empty (in this iteration)
"completedAt" => "",
"createdAt" => "2016-06-06T00:00:00Z",
"updatedAt" => "2016-06-06T00:00:00Z"
},
{
"consumableId" => "consumableId_lesson_2",
"assignmentId" => "assignment uuid", // referes to the assignment above
"lessonId" => "some lesson Id",
"objectiveConsumableId" => "consumableId_obj", // refers to the consumableObjective above
"assignmentOrderIndex" => 1,
"startDate" => "", // will always be empty (in this iteration)
"targetDate" => "", // will always be empty (in this iteration)
"completedAt" => "",
"createdAt" => "2016-06-06T00:00:00Z",
"updatedAt" => "2016-06-06T00:00:00Z"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment