[关闭]
@fuyb1986 2018-03-20T09:40:24.000000Z 字数 1467 阅读 549

教师信息

儿童编程


获取教师信息列表

Method and URL Structure

Method Resource URL Authorization
GET /server/userinfo/teacher_list/ NO

Request Parameters

Name Description Default Required
page 分页 1 False

cURL Example

  1. curl -X GET -H 'Content-Type: application/json' http://localhost/server/userinfo/teacher_list/

Response Data

Name Description
pk id
name 名字
avatar 头像
title 头衔
gender 性别: male, female
degree 学位
university 学校
level 等级
scores 评分
student_count 教过的学生数量
courses 教授的课程

Response

  1. {
  2. "count":3,
  3. "next":null,
  4. "previous":null,
  5. "results":[{
  6. "pk":6,
  7. "degree":"硕士",
  8. "university":"大学XXX0001",
  9. "introduce":"简介",
  10. "level":5,
  11. "title": "大学博士",
  12. "scores":95,
  13. "student_count": 33,
  14. "gender":"female",
  15. "avatar": "https://www.cxy61.com/img/1.png"
  16. "recent_evaluations": [{
  17. "owner": {
  18. "name": "尼古拉斯赵四",
  19. "avatar": "https://static1.bcjiaoyu.com/c573c7_a.jpg-3000x2002"
  20. },
  21. "scores": 5,
  22. "scores_display": "五星",
  23. "content": "测试评价",
  24. "create_time": "2018-03-01T16:45:23"
  25. }, {
  26. "owner": {
  27. "name": "尼古拉斯赵四",
  28. "avatar": "https://static1.bcjiaoyu.com/8ee4c5a73c7_a.jpg-3000x2002"
  29. },
  30. "scores": 5,
  31. "scores_display": "五星",
  32. "content": "很好",
  33. "create_time": "2018-02-26T09:56:51"
  34. }..],
  35. "courses": [{
  36. "title": "[团购]索尼KOOV机器人+培训课",
  37. "introduce": "包含KOOV机器人豪华版一套",
  38. "icon": "https://static1.bcjiaoyu.com//course/koov1.png",
  39. },..]
  40. },..]
  41. }

教师信息详情

Method and URL Structure

Method Resource URL Authorization
GET /server/userinfo/teacher_info/${pk}/ NO

cURL Example

  1. curl -X GET -H 'Content-Type: application/json' http://localhost/server/userinfo/teach_info/5227/

Response

  1. {
  2. "degree":"硕士",
  3. "scores":95,
  4. "level": 5,
  5. "gender":"female",
  6. "university":"大学XXX0001",
  7. "introduce":"简介",
  8. "pk":3
  9. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注