User Tools

Site Tools


api2:adaptive:reviews

**This is an old revision of the document!** ----

A PCRE internal error occured. This might be caused by a faulty plugin

As you might have seen [[api2:knowledge_structure:knowledge_node_student|in the Knowledge Node Student paragraph]], you can fetch the dates of the next reviews by fetching the knowledge node students.\\ However, it can be cumbersome, and we offer here other solutions. ===Fetch Reviews (GET)=== ^ Method | GET| ^ URL | /review_utils/fetch_reviews | ==Parameters== ^ Property ^ Type ^ Description ^ | student_id or student_uid *| Integer or String | Identifier of the student | | pending | Boolean | if true, only give the pending reviews; if false, give all the reviews (pending plus future ones) | ==Send the request (JSON input example)== <code> { student_id: 4, pending: true } </code> ==Get the response (JSON output example)== <code> [{ id: 941, knowledge_node_id: 36, student_id: 31, next_review_at: "2017-10-03 12:24:49", active: true, score : 0.33 }, { id: 945, knowledge_node_id: 51, student_id: 31, next_review_at: "2017-10-09 15:17:14", active: true, score : 0.47 }] </code> ===Fetch Questions for Review (GET)=== This requires that you declared your content on our API, and defined which were questions.\\ It will give you the questions one student has do to for his/her reviews. ^ Method | GET| ^ URL | /review_utils/fetch_pending_reviews_questions_per_student | ==Parameters== ^ Property ^ Type ^ Description ^ | student_id or student_uid *| Integer or String | Identifier of the student | ==Send the request (JSON input example)== <code> { student_uid: "3" } </code> ==Get the response (JSON output example)== <code> [ { "knowledge_node_id":36, "content_id":73, "content_uid":"3" }, { "knowledge_node_id":42, "content_id":84, "content_id":"17" } ] </code>

api2/adaptive/reviews.1508149522.txt.gz · Last modified: 2017/10/16 12:25 by maries