Classrooms

创建一个教室

POST
创建一个新的空“教室”

Request

This endpoint expects an object.
name
stringRequired
教室名称
ownerID
stringRequired
aceConfig
objectRequired

Response

This endpoint returns an object
_id
stringOptional
name
stringOptional
members
list of stringsOptional
ownerID
stringOptional
description
stringOptional
code
stringOptional
codeCamel
stringOptional
courses
list of objectsOptional
clanId
stringOptional
POST
1curl -X POST https://koudashijie.com/api/classrooms \
2 -H "Content-Type: application/json" \
3 -u "<username>:<password>" \
4 -d '{
5 "name": "string",
6 "ownerID": "string",
7 "aceConfig": {}
8}'
200Successful
1{
2 "_id": "string",
3 "name": "string",
4 "members": [
5 "string"
6 ],
7 "ownerID": "string",
8 "description": "string",
9 "code": "string",
10 "codeCamel": "string",
11 "courses": [
12 {
13 "_id": "string",
14 "levels": [
15 {
16 "string": {}
17 }
18 ],
19 "enrolled": [
20 "string"
21 ],
22 "instance_id": "string"
23 }
24 ],
25 "clanId": "string"
26}