更新老师、学生加入离开教室的时间
儿童编程
老师加入教室的时间
Method and URL Structure
Method |
Resource URL |
Authorization |
PUT |
/classroom/teacher_join/${PK}/ |
YES |
cURL Example
curl -X PUT -H 'Authorization: token 95b7b4d8fff5d76c9d3d2954fe5c7d456c110a8c' -H 'Content-Type: application/json' http://localhost/classroom/teacher_join/123/
老师离开教室的时间
Method and URL Structure
Method |
Resource URL |
Authorization |
PUT |
/classroom/teacher_leave/${pk}/ |
YES |
cURL Example
curl -X PUT -H 'Authorization: token 95b7b4d8fff5d76c9d3d2954fe5c7d456c110a8c' -H 'Content-Type: application/json' http://localhost/classroom/teacher_leave/123/
学生加入教室的时间
Method and URL Structure
Method |
Resource URL |
Authorization |
PUT |
/classroom/student_join/${PK}/ |
YES |
cURL Example
curl -X PUT -H 'Authorization: token 95b7b4d8fff5d76c9d3d2954fe5c7d456c110a8c' -H 'Content-Type: application/json' http://localhost/classroom/student_join/123/
学生离开教室的时间
Method and URL Structure
Method |
Resource URL |
Authorization |
PUT |
/classroom/student_leave/${pk}/ |
YES |
cURL Example
curl -X PUT -H 'Authorization: token 95b7b4d8fff5d76c9d3d2954fe5c7d456c110a8c' -H 'Content-Type: application/json' http://localhost/classroom/student_leave/123/