班级和小节
冰橙课件
完成上课
Method and URL Structure
Method |
Resource URL |
Authorization |
POST |
/api/classroom/finish_secation/${pk}/ |
YES |
Request Data
Name |
Description |
secation |
小节 id |
Request
{
"secation": 301
}
cURL Example
curl -X POST -H 'Authorization: token 95b7b4d8fff5d76c9d3d2954fe5c7d456c110a8c' -H 'Content-Type: application/json' --data '{...}' http://localhost/api/classroom/finish_secation/299/
Response
{
"status":0,
"message":"",
"secations":[299, 300, 301]
}
获取完成的小节
Method and URL Structure
Method |
Resource URL |
Authorization |
POST |
/api/classroom/finished_secations/${pk}/ |
YES |
cURL Example
curl -X GET -H 'Authorization: token 95b7b4d8fff5d76c9d3d2954fe5c7d456c110a8c' -H 'Content-Type: application/json' http://localhost/api/classroom/finished_secations/299/
Response
{
"status":0,
"message":"",
"secations":[299, 300, 301]
}