Skip to content
xuelang123 edited this page Apr 23, 2014 · 1 revision

##课表的获取APi##

##获取所有课程##

/api/course

Request :

method : get

Response :

{
    "course": [
        [
            {
                "week": "星期一",
                "teacherName": "老师",
                "section": "第1,2节",
                "place": "104教室",
                "name": "形势与政治",
                "id": "ff8081814530db35014531f54362006f"
            },....
        ],
        [
            {
                "week": "星期二",
                "teacherName": "老师",
                "section": "第1,2节",
                "place": "104教室",
                "name": "lol补兵教学",
                "id": "ff8081814530db35014531f54362016f"
            },
       
        ]
    ]
}

获取某一星期的课程##

/ api/course/week/{week}

Request :

method : get
week: Integer  // 星期  星期一 则为 1  星期日为 0

Response:

[
    {
        "week": "星期三",
        "teacherName": "老师",
        "section": "第1,2节",
        "place": "104教室",
        "name": "体育",
        "id": "ff8081814530db35014531f54362026f"
    },...
]
Clone this wiki locally