-
Notifications
You must be signed in to change notification settings - Fork 0
course in catalog
ifeify edited this page Jan 10, 2019
·
1 revision
retrieves information regarding a course in the course catalog
NOTE: All communication is done via SSL/TLS
GET /courses/{course_id} HTTP/1.1
User-Agent: TutorsToGo/v1/iOS/11.1
Host: www.somewhere.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
200 OK
Content-Type: application/json; charset=utf-8
{
"course_id": "12453",
"course_name": "CS 117"
}
400 Bad Request
Content-Type: application/json
{
"error": "12345 is not a valid course id"
}