教师信息
儿童编程
获取教师信息列表
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
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
{ "count":3, "next":null, "previous":null, "results":[{ "pk":6, "degree":"硕士", "university":"大学XXX0001", "introduce":"简介", "level":5, "title": "大学博士", "scores":95, "student_count": 33, "gender":"female", "avatar": "https://www.cxy61.com/img/1.png" "recent_evaluations": [{ "owner": { "name": "尼古拉斯赵四", "avatar": "https://static1.bcjiaoyu.com/c573c7_a.jpg-3000x2002" }, "scores": 5, "scores_display": "五星", "content": "测试评价", "create_time": "2018-03-01T16:45:23" }, { "owner": { "name": "尼古拉斯赵四", "avatar": "https://static1.bcjiaoyu.com/8ee4c5a73c7_a.jpg-3000x2002" }, "scores": 5, "scores_display": "五星", "content": "很好", "create_time": "2018-02-26T09:56:51" }..], "courses": [{ "title": "[团购]索尼KOOV机器人+培训课", "introduce": "包含KOOV机器人豪华版一套", "icon": "https://static1.bcjiaoyu.com//course/koov1.png", },..] },..]}
教师信息详情
Method and URL Structure
| Method |
Resource URL |
Authorization |
| GET |
/server/userinfo/teacher_info/${pk}/ |
NO |
cURL Example
curl -X GET -H 'Content-Type: application/json' http://localhost/server/userinfo/teach_info/5227/
Response
{ "degree":"硕士", "scores":95, "level": 5, "gender":"female", "university":"大学XXX0001", "introduce":"简介", "pk":3}