Skip to content

GET \stats\students\{id}

Tianci Zhong edited this page Dec 21, 2016 · 1 revision

###Description Get the student information with the given student id ###Route Get /stats/students/{id} ###Response Code 200, on Success 403, on Unauthorized ###Response Body on Success

{
  "name": … , 
  "id": … ,
  "number_of_courses": …,
  "courses": [
    {
      "name": … ,
      "id": … ,
      "number_of_hw": … ,
      "individual": [ … ],
      "average": [ … ],
      "assessments": [
        {
          "number_of_assessments": … ,
          "data": [
            {
              "name": "Assessment … ",
              "data": [ … ]
            } … 
          ]
        } … 
      ]
    } … 
  ],
  "progress": 0.95,
  "badges": [ … ],
  "tutorialID": … 

###Response Body On others

{
    status: "failed",
    message: "Not authorized."
}
Clone this wiki locally