Skip to content

GET \stats\instructors\{id}

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

###Description Get the instructor information by the given instructor id ###Route Get /stats/instructors/{id} ###Response Code 200, on Success 403, on Unauthorized ###Response on Success

{
  "name": … ,
  "id": … , 
  "courses": [
    {
      "name": …,
      "description": …,
      "id": … ,
      "hw": [ … ],
      "hw_averages": [ … ],
      "students": [ … ]
    }, …
  ]
}

###Response on Others

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