首页改版课程类别
儿童编程
获取类别列表
Method and Url Structure
Method |
Resource URL |
GET |
/program_face2face/course/course_kinds/ |
cURL Example
curl -X GET
127.0.0.1:8000/program_face2face/course/course_kinds/
JSON Response
[
{
"kind": [
{
"pk": 2,
"kind": "HTML"
},
{
"pk": 3,
"kind": "JS"
}
],
"name": "前端"
},
{
"kind": [
{
"pk": 1,
"kind": "Python"
}
],
"name": "Python"
}
]
获取每个类别的第一个课程
Method and Url Structure
Method |
Resource URL |
GET |
/program_face2face/course/free_course_detail/${pk}/ |
Request Date
Name |
Description |
Required |
pk |
上面接口中kind 列表里的pk |
YES |
cURL Example
curl -X GET
127.0.0.1:8000/program_face2face/course/free_course_detail/1/
JSON Response
{
"pk": 1,
"name": "Python L1",
"content": "",
"price": 2000,
"images": "",
"tag": null,
"udid_list": [],
"dub_list": [],
"language_list": [],
"profession": "Python",
"version": "1.00",
"my_version": null,
"speed": false,
"isopen": false,
"isshow": true,
"iszishiying": false,
"json": "",
"mycourse_json": null,
"total_lesson": 0,
"learn_extent": {
"status": "nostart",
"last_lesson": 0
},
"free": false
}