+++
get:Api-User-login.html--登錄
username#用戶登錄名
password#用戶登錄密碼
<<<
success
{
"token": "55cd027820985b1c73bbd121f2832def",//登錄憑據
"avatar": "http://***.com/upload/201504/201504151606232892.png",//用戶頭像地址
"displayName": "超級管理員"//昵稱
}
+++
+++
get:Api-User-logout.html--退出
token#登錄憑據
<<<
success
header:200
+++
+++
get:Api-User-update_pass.html--修改密碼
token#登錄憑據
password#新密碼
original#舊密碼
<<<
success
header:200
+++
+++
get:Api-Index-message.html--獲取消息
token#登錄憑據
<<<
success
{
"count":3,
"messages":[
{
"id":"5",//消息id
"createTime":1431273600000,//消息發送時間
"content":"11"//消息主體內容
},
{
"id":"2",
"createTime":1428940800000,
"content":"323232"
},
{
"id":"1",
"createTime":1428940800000,
"content":"12121"
}
]
}
+++
+++
get:Api-Index-banner.html--輪播圖
token#登錄憑據
<<<
success
{
"count":3,//輪播圖的數量
"banners":[
{
"id":"5",//id號碼
"imageUrl":"http://***.com/upload/201503/201503171746451602.jpg",//圖片地址
"linkUrl":""//跳轉鏈接
},
{
"id":"4",
"imageUrl":"http://***.com/upload/201503/201503171746339731.jpg",
"linkUrl":""
},
{
"id":"2",
"imageUrl":"http://***.com/upload/201501/201501121018115471.jpg",
"linkUrl":""
}
]
}
+++
+++
get:Api-Index-CoursesToCourseware.html--獲取課程列表
int:grade#代表學段,分小學(1),初中(2),高中(3),不帶此參數代表不區分
int:type#代表必修(1)還是選修(2), 不帶此參數代表不區分
int:page#代表本次請求的頁碼,從1開始, 不提供的情況下默認為第一頁
int:size#代表本次請求的數量,不提供的情況下,服務器給出默認值(如20)
<<<
success
{
"count":8,//課程總數量
"page":1,//頁碼
"size":8,//本頁數量
"courses":[
{
"id":"76",//課程id
"imageUrl":"http://***.com/course/sid_76/logo.png",//課程縮略圖
"title":"文明禮儀(小學低年級)",//課程名稱
"description":"課程簡介",//課程簡介
"score":5,//課程學分
"hitratio":53748,//本課程總點擊量
"learningstat":2,//學習進度,1-未學習,2-學習中,3-已學習
"rank":0,//課程星級
"elective":2//查看用戶是否已經選修此課程,1已選修,0未選擇
},
{
"id":"78",
"imageUrl":"http://***.com/course/sid_78/logo.png",
"title":"心理輔導(初中)",
"description":"課程簡介",
"score":4,
"hitratio":11960,
"learningstat":1,
"rank":0,
"elective":1
}....
]
}
+++
+++
get:Api-Index-courses.html--獲取課程模塊
token#登錄憑據
int:courseid#課程id
<<<
success
{
"count": "5",//課程模塊的數量
"modules": [
{
"id": "90",//課程模塊id
"imageUrl": "http://***.com/course/sid_76/coursewareid_90/logo.png",//課程模塊縮略圖
"title": "我來打電話",//課程模塊名稱
"description": "",//課程模塊簡介
"score": 1,//課程模塊學分
"hitratio": 18061,//課程模塊點擊量
"rank": 5,//課程模塊星級
"downloadUrl": "http://***.com/course/sid_76/coursewareid_90.zip",//課程模塊下載地址
"playUrl": "http://ztjy.edu.sh.cn/Index-Classplay-apiPlay-coursewareid-90",//課程模塊播放地址
"scormPlayPath": "package/c01.html",//本模塊學習的章節記錄,比如說上次已經完成第一章節,本地該學習第二章節
"type": 1,//課程格式,mp4是0,zip是1,其余是2
"learningstat": 2//用戶登錄后才會有此字段,顯示學習狀態,0-未學習,1-學習中,2-已學習
}.....
]
}
+++
+++
get:Api-Index-courseware.html--獲取模塊詳情
token#登錄憑據
int:moduleid#課程模塊id
<<<
success
{
"id": "90",//課程模塊id
"imageUrl": "http://***.com/course/sid_76/coursewareid_90/logo.png",//課程模塊縮略圖
"title": "我來打電話",//課程模塊名稱
"description": "",//課程模塊詳細介紹
"score": 1,//課程模塊學分
"hitratio": 18061,//課程模塊點擊量
"rank": 0,//課程模塊星級
"downloadUrl": "http://***.com/course/sid_76/coursewareid_90.zip",//課程模塊下載地址
"playUrl": "http://ztjy.edu.sh.cn/Index-Classplay-apiPlay-coursewareid-90",//課程模塊播放地址
"type": 1,//課程格式,mp4是0,zip是1,其余是2
"comments": [
{
"id": "273",//課程模塊評論id
"user": "高中生c",//評論者昵稱
"content": ""//評論內容
}...
],
"learningstat": 2//用戶登錄后才會有此字段,顯示學習狀態,0-未學習,1-學習中,2-已學習
}
+++
+++
post:Api-Index-selectCourses.html--選課
token#登錄憑據
array:courseids#課程模塊id
<<<
success
未能成功模擬數據放棄
+++
+++
post:Api-Index-studentElectiveDel.html--取消選課
token#登錄憑據
array:courseids#課程模塊id
<<<
success
未能成功模擬數據放棄
+++
+++
get:Api-Index-studentElectiveDel.html--取消選課
token#登錄憑據
array:courseids#課程模塊id
<<<
success
未能成功模擬數據放棄
+++
+++
get:Api-Index-MyCourses.html--我的課程
token#登錄憑據
int:grade#代表年級,分小學(1),初中(2),高中(3),不帶此參數代表不區分
int:type#代表必修(1)還是選修(2), 不帶此參數代表不區分
int:page#代表本次請求的頁碼,從1開始,不提供的情況下默認為第一頁
int:size#代表本次請求的數量,不提供的情況下,服務器給出默認值(如20)
<<<
success
{
"count": 4,/當前用戶學習課程的總數量
"page": 1,//當前頁碼
"size": 4,//本次返回的課程數量
"courses": [
{
"id": "76",//課程id
"imageUrl": "http://***.com/course/sid_76/logo.png",//課程縮略圖
"title": "文明禮儀(小學低年級)",//課程名稱
"description": "",//課程簡介
"score": 5,//課程學分
"hitratio": 53748,//本課程總點擊量
"rank": 0,//課程星級
"learningstat": 2,//學習進度,1-未學習,2-學習中,3-已學習
"elective": 2//查看用戶是否已經選修此課程,1已選修,0未選擇
}...
]
}
+++
+++
get:Api-Index-LearningRecord.html--獲取學習記錄
token#登錄憑據
<<<
success
{
"courses": {
"senior": [//高中課程學習記錄
{
"id": "55",//課程id
"title": "健康生活(高中)",//課程名稱
"score": 4,//課程學分
"obtainedScore": 2,//學習過的章節數量
"percentage": 50,//學習進度
"chooseTime": "2015.09.01",//選課時間
"duration": 35//學生學習時間
}...
],
"junior": [//初中學習記錄
{
"id": "65",
"title": "公共安全(初中)",
"score": 5,
"obtainedScore": 0,
"percentage": 0,
"chooseTime": "2015.09.23",
"duration": 0
}...
],
"primary": [//小學學習記錄
{
"id": "53",
"title": "健康生活(小低)",
"score": 3,
"obtainedScore": 1,
"percentage": 34,
"chooseTime": "已取消選課",
"duration": 15
}...
]
}
}
+++
+++
get:Api-Index-LearningRecordCourseware.html--獲取課程學習記錄
token#登錄憑據
int:moduleid#課程id
<<<
success
{
"modules": [
{
"id": "90",//課程id
"title": "我來打電話",//課程名稱
"score": "1",//課程學分
"progress": 0,//課程學習進度
"lastStudyTime": "2015-07-31",//課程最后一次學習時間
"duration": 0//學習時長
}...
]
}
+++
+++
get:Api-Index-indexHotCoursesList.html--首頁熱門課程列表
token#登錄憑據
int:page#代表本次請求的頁碼,從1開始,不提供的情況下默認為第一頁
int:size#代表本次請求的數量,不提供的情況下,服務器給出默認值(如20)
<<<
success
{
"count": 30,//課程總數量
"page": 1,//當前頁碼
"size": 7,//本次返回的數量
"courses": [
{
"id": "76",//課程id
"imageUrl": "http://***.com/course/sid_76/logo.png",//課程縮略圖
"title": "文明禮儀(小學低年級)",//課程名稱
"description": "",//課程簡介
"score": 5,//課程學分
"hitratio":53748,//本課程總點擊量
"rank": 0,//課程星級
"learningstat": 2,//學習進度,1-未學習,2-學習中,3-已學習
"elective": 2//查看用戶是否已經選修此課程,1已選修,0未選擇
}...
]
}
+++
+++
get:Api-Index-coursewareReadPinglun.html--讀取課程模塊評論列表
int:moduleid#課程模塊id
int:page#代表本次請求的頁碼,從1開始,不提供的情況下默認為第一頁
int:pagesize#代表本次請求的數量,不提供的情況下,服務器給出默認值(如20)
<<<
success
{
"pinglun": [
{
"id": "273",//評論id
"user": "高中生c",//評論者昵稱
"content": " 啊啊啊"//評論內容
}...
]
}
+++
+++
get:Api-Index-coursewareAddPinglun.html--發表課程模塊評論
token#登錄憑據
int:moduleid#課程模塊id
comment#評論內容
int:id#被回復的那條評論id
<<<
header:200
+++
+++
get:Api-Index-coursewareXingjiAdd.html--課程模塊評分
token#登錄憑據
int:moduleid#課程模塊id
int:rank#星級
<<<
header:200
+++
+++
get:Api-Index-themes.html--主題包列表
<<<
{
"count": 2,
"themes": [
{
"id": 0,//主題包id
"packageUrl": "http://***.com/app/DefaultSkinTheme.zip",//主題包壓縮文件地址
"thumbnailUrl": "http://***.com/app/DefaultSkinTheme.png",//主題包縮略圖
"title": "Default"//主題包名稱
}...
]
}
+++
+++
get:Api-Index-learningClaim.html--學段學習要求
int:grade#代表年級,分小學(1),初中(2),高中(3),不帶此參數代表不區分
<<<
{
"content": "初中生須學完規定比例的必修課程和選修課程,并獲得相應的學分。必修課程是每個學生必須學習的,這些課程會自動進入學習中心的課程列表;選修課程可根據個人興趣,任選某門課程下的某個模塊,學完1個模塊,即可獲1個學分。"
}
+++
+++
get:Api-Index-selectcenter.html--選課中心
int:grade#代表年級,分小學(1),初中(2),高中(3),不帶此參數代表不區分
int:page#代表本次請求的頁碼,從1開始,不提供的情況下默認為第一頁
int:size#代表本次請求的數量,不提供的情況下,服務器給出默認值(如20)
<<<
電腦沒電,等等更新
+++