...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
METHOD: POST URI: /course/v1/assessment/update // End point REQUEST: { "id": "api.course.assessment.update", "ver": "1.0", "ets": 1566884714550, //Time stamp in ms "request": [{ "batchId":"", // ?Batch already existsIdentifier at event level in `cdata` "courseId":"", // ? already exists at event level in `cdata` Course Identifier "userId":"", // ? already exists at event level in `cdata` User Identifier "attemptId":"", // QuestionAttempt attempt identifierIdentifier "contentId": "", // ?Content already exists at event level in `cdata` Identifier "events": [{}] //ONLY ASSESS Events }, ...], } |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
CREATE TABLE assessment_aggregator ( batch_id text, user_id text, course_id text, content_id text, attempt_id text, updated_on timestamp, created_on timestamp, last_attempted_on timestamp, total_score text, max_score text, question list<frozen<question>>, PRIMARY KEY (worksheetcontent_id, attempt_id, user_id, course_id, batch_id ) ) CREATE INDEX ON assessment_aggregator (last_attempted_on); CREATE TYPE question( id text, max_score int, score int, type text, title text, resvalues: list<text>, params: list<text>, description text, duration:text ); |
...