Users

按用户获取教室

GET

返回Clasrooms(“教室”)清单,这个用户(如果是学生)在教室里或者是教室的主人(如果是老师)。

Path parameters

handlestringRequired

文件中的 _id 或者 slug.

Query parameters

retMemberLimitdoubleOptional
设置返回的教室中显示的学生数量

Response

This endpoint returns a list of objects
_id
stringOptional
name
stringOptional
members
list of stringsOptional
ownerID
stringOptional
description
stringOptional
code
stringOptional
codeCamel
stringOptional
courses
list of objectsOptional
clanId
stringOptional
GET
$curl -G https://koudashijie.com/api/users/%3Ahandle/classrooms \
> -u "<username>:<password>" \
> -d retMemberLimit=1
Response
1[
2 {
3 "_id": "string",
4 "name": "string",
5 "members": [
6 "string"
7 ],
8 "ownerID": "string",
9 "description": "string",
10 "code": "string",
11 "codeCamel": "string",
12 "courses": [
13 {
14 "_id": "string",
15 "levels": [
16 {
17 "string": {}
18 }
19 ],
20 "enrolled": [
21 "string"
22 ],
23 "instance_id": "string"
24 }
25 ],
26 "clanId": "string"
27 }
28]