Skip to content

Files

Latest commit

07716c6 · Jul 30, 2015

History

History
276 lines (268 loc) · 6.25 KB

File metadata and controls

276 lines (268 loc) · 6.25 KB

Find Course Information

GET /courses/{serialNo}

Description

Find course information by its id.

Request

Headers

Name Required Description
X-NCU-API-TOKEN yes Your API token

Example

GET /courses/12034

Response

Formats

  • json

Structure

Field Name Type Value Description
serialNo String course id, 5 digits and left padding 0.
no String course number
classNo String class number, * means not specify.
name String course name
isClosed Boolean is canceled or not.
memo String memo
isMasterDoctor Boolean is both for master and doctor.
language Enum language that instructor(s) use.
Chinese 中文
English 英語
French 法語
Taiwanese 台語
Hakka 客語
Japanese 日本語
Spanish 西班牙語
German 德語
Partially English 部份英語
passwordCard Enum Password Card
no 不使用
optional 部份使用
all 全部使用
isFirstRun Boolean is available at first selection.
isPreSelect Boolean will be selected for student before first selection.
teachers String Array teacher names
credit Number credit
classRooms String[] class room number with building code
times Object Key : Day of Week
0 Monday
1 Tuesday
2 Wednesday
3 Thursday
4 Friday
5 Saturday
6 Sunday
Value : array of period(s)
sequences 1,2,3,4,Z,5,6,7,8,9,A,B,C,D,E,F
type Enum
required 必修
elective 選修
fullHalf Enum half year(1 semester) or full year(2 semesters)
full
half
maxStudents Number maximum amount of students, 0 means infinity.

Example

[
	{
        "serialNo" : 12034,
        "no" : "EL5001",
        "classNo" : "*",
        "name" : "文學/文化理論導讀",
        "isClosed" : false,
        "memo": "限三、四年級",
        "isMasterDoctor": false,
        "language": "國語",
        "passwordCard": "不使用",
        "isFirstRun": true,
        "isPreSelect": true,
        "teachers": [  "錢夫人", "阿土伯" ],
        "credit": 2,
        "classRooms": [ "C2-209", "C2-209" ],
        "times": {
                  "0": ["5"],
                  "2": ["3", "4"]
                },
        "type": "必修",
        "fullHalf": "",
        "maxStudents": 0
    }
]