Skip to content
ifeify edited this page Jan 10, 2019 · 1 revision

Course in catalog

retrieves information regarding a course in the course catalog

NOTE: All communication is done via SSL/TLS

HTTP request sample

GET /courses/{course_id} HTTP/1.1
User-Agent: TutorsToGo/v1/iOS/11.1
Host: www.somewhere.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Success Response

200 OK
Content-Type: application/json; charset=utf-8

{
    "course_id": "12453",
    "course_name": "CS 117"
}

Error Response

400 Bad Request
Content-Type: application/json

{
    "error": "12345 is not a valid course id"
}
Clone this wiki locally