[关闭]
@fuyb1986 2017-05-25T10:13:30.000000Z 字数 743 阅读 548

班级和小节

冰橙课件


完成上课

Method and URL Structure

Method Resource URL Authorization
POST /api/classroom/finish_secation/${pk}/ YES

Request Data

Name Description
secation 小节 id

Request

  1. {
  2. "secation": 301
  3. }

cURL Example

  1. curl -X POST -H 'Authorization: token 95b7b4d8fff5d76c9d3d2954fe5c7d456c110a8c' -H 'Content-Type: application/json' --data '{...}' http://localhost/api/classroom/finish_secation/299/

Response

  1. {
  2. "status":0,
  3. "message":"",
  4. "secations":[299, 300, 301]
  5. }

获取完成的小节

Method and URL Structure

Method Resource URL Authorization
POST /api/classroom/finished_secations/${pk}/ YES

cURL Example

  1. curl -X GET -H 'Authorization: token 95b7b4d8fff5d76c9d3d2954fe5c7d456c110a8c' -H 'Content-Type: application/json' http://localhost/api/classroom/finished_secations/299/

Response

  1. {
  2. "status":0,
  3. "message":"",
  4. "secations":[299, 300, 301]
  5. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注