[关闭]
@JackieQu 2018-10-18T15:27:29.000000Z 字数 910 阅读 246

首页改版课程类别

儿童编程


获取类别列表

Method and Url Structure

Method Resource URL
GET /program_face2face/course/course_kinds/

cURL Example

  1. curl -X GET
  2. 127.0.0.1:8000/program_face2face/course/course_kinds/

JSON Response

  1. [
  2. {
  3. "kind": [
  4. {
  5. "pk": 2,
  6. "kind": "HTML"
  7. },
  8. {
  9. "pk": 3,
  10. "kind": "JS"
  11. }
  12. ],
  13. "name": "前端"
  14. },
  15. {
  16. "kind": [
  17. {
  18. "pk": 1,
  19. "kind": "Python"
  20. }
  21. ],
  22. "name": "Python"
  23. }
  24. ]

获取每个类别的第一个课程

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

  1. curl -X GET
  2. 127.0.0.1:8000/program_face2face/course/free_course_detail/1/

JSON Response

  1. {
  2. "pk": 1,
  3. "name": "Python L1",
  4. "content": "",
  5. "price": 2000,
  6. "images": "",
  7. "tag": null,
  8. "udid_list": [],
  9. "dub_list": [],
  10. "language_list": [],
  11. "profession": "Python",
  12. "version": "1.00",
  13. "my_version": null,
  14. "speed": false,
  15. "isopen": false,
  16. "isshow": true,
  17. "iszishiying": false,
  18. "json": "",
  19. "mycourse_json": null,
  20. "total_lesson": 0,
  21. "learn_extent": {
  22. "status": "nostart",
  23. "last_lesson": 0
  24. },
  25. "free": false
  26. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注