User Tools

Site Tools


api2:adaptive:reviews

As you might have seen 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)

This route will give you the set of Knowledge Node Student which represent the Knowledge Nodes, i.e. the concepts, that are being worked on for review.

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)
{
	"student_id": 267,
	"pending": true
}
Get the response (JSON output example)
[
    {
        "id": 759,
        "knowledge_node_id": 2714,
        "student_id": 267,
        "next_review_at": "2017-11-22T09:53:09.621Z",
        "student_uid": null,
        "knowledge_node_uid": null
    },
    {
        "id": 760,
        "knowledge_node_id": 2715,
        "student_id": 267,
        "next_review_at": "2017-09-22T14:35:42.009Z",
        "student_uid": null,
        "knowledge_node_uid": null
    },
    {
        "id": 761,
        "knowledge_node_id": 2716,
        "student_id": 267,
        "next_review_at": "2017-09-22T14:35:43.288Z",
        "student_uid": null,
        "knowledge_node_uid": null
    }
]

Fetch Questions for Review (GET)

This requires that you declared your content on our API, and defined which contents are 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)
{
	"student_id": 267
}
Get the response (JSON output example)
[
    {
        "knowledge_node_id": 2715,
        "content_id": 561,
        "content_uid": "5"
    },
    {
        "knowledge_node_id": 2716,
        "content_id": 897,
        "content_uid": "63"
    },
    {
        "knowledge_node_id": 2714,
        "content_id": 702,
        "content_uid": "30"
    }
]
api2/adaptive/reviews.txt · Last modified: 2017/11/28 10:02 by maries