Showing
1 changed file
with
102 additions
and
0 deletions
班级管理系列接口.md
0 → 100644
1 | +####获得所有班级接口 | ||
2 | +接口地址:/group | ||
3 | +请求方式:GET | ||
4 | +参数:无 | ||
5 | +返回值: | ||
6 | +说明:旧版本无**background**参数 | ||
7 | +```json | ||
8 | +[ | ||
9 | + { | ||
10 | + "learn": "0", | ||
11 | + "average": "0", | ||
12 | + "id": 15, | ||
13 | + "name": "仁者乐山", | ||
14 | + "createAt": "2015-07-30T11:39:24.929", | ||
15 | + "updateAt": "2015-07-30T11:39:24.929", | ||
16 | + "count": 1, | ||
17 | + "background": "http://image.boxfish.cn/1.jpg" | ||
18 | + }, | ||
19 | + { | ||
20 | + "learn": "0", | ||
21 | + "average": "0", | ||
22 | + "id": 16, | ||
23 | + "name": "智者乐水", | ||
24 | + "createAt": "2015-07-30T14:08:33.436", | ||
25 | + "updateAt": "2015-07-30T14:08:33.436", | ||
26 | + "count": 1, | ||
27 | + "background": "http://image.boxfish.cn/1.jpg" | ||
28 | + }, | ||
29 | + { | ||
30 | + "learn": "0", | ||
31 | + "average": "0", | ||
32 | + "id": 17, | ||
33 | + "name": "德玛西亚", | ||
34 | + "createAt": "2015-07-30T14:09:09.119", | ||
35 | + "updateAt": "2015-07-30T14:09:09.119", | ||
36 | + "count": 0, | ||
37 | + "background": "http://image.boxfish.cn/1.jpg" | ||
38 | + } | ||
39 | +] | ||
40 | +``` | ||
41 | + | ||
42 | +---------------------------------- | ||
43 | + | ||
44 | +####更新班级接口 | ||
45 | +接口地址:/group | ||
46 | +请求方式:POST | ||
47 | +参数: | ||
48 | +|参数 |是否必须 |说明 | | ||
49 | +|--------------|------------|------------| | ||
50 | +|id |否 |id为空,是创建班级;id不为空,是更新班级。| | ||
51 | +|name |是 |班级名称 | | ||
52 | +|summary |否 |简介 | | ||
53 | +|background |否 |班级背景图 | | ||
54 | +返回值: | ||
55 | +```json | ||
56 | +{ | ||
57 | + "id": 15, | ||
58 | + "name": "吼吼吼", | ||
59 | + "createAt": "2015-07-30T11:39:24.929", | ||
60 | + "updateAt": "2015-08-06T09:59:52.617", | ||
61 | + "background": "http://www.boxfish.cn" | ||
62 | +} | ||
63 | +``` | ||
64 | +---------------------------------- | ||
65 | +####删除班级接口 | ||
66 | +接口地址:/group/{group} | ||
67 | +请求方式:DELETE | ||
68 | +参数:{group}为班级id | ||
69 | +接口地址示例:/group/15?access_token=cCBBP9x4vq | ||
70 | +返回值:无 | ||
71 | + | ||
72 | +---------------------------------- | ||
73 | +####获取班级所有学生接口 | ||
74 | +接口地址:/group/{group} | ||
75 | +请求方式:GET | ||
76 | +参数:{group}为班级id | ||
77 | +接口地址示例:/group/15?access_token=cCBBP9x4vq | ||
78 | +返回值: | ||
79 | +```json | ||
80 | +[ | ||
81 | + { | ||
82 | + "id": 61741, | ||
83 | + "name": "一口锅", | ||
84 | + "username": "user150730113647rKlrUqiZ", | ||
85 | + "nickname": "echo", | ||
86 | + "realname": "一口锅", | ||
87 | + "figure_url": "http://q.qlogo.cn/qqapp/101019284/E9C2BA1E2146589CCB69AC8765935819/40", | ||
88 | + "type": "member", | ||
89 | + "sum_score": 55 | ||
90 | + }, | ||
91 | + { | ||
92 | + "id": 61740, | ||
93 | + "name": "一口大锅", | ||
94 | + "username": "user150730113647rKlrUqiZ", | ||
95 | + "nickname": "echo2", | ||
96 | + "realname": "一口大锅", | ||
97 | + "figure_url": "http://q.qlogo.cn/qqapp/101019284/E9C2BA1E2146589CCB69AC8765935819/40", | ||
98 | + "type": "member", | ||
99 | + "sum_score": 567 | ||
100 | + } | ||
101 | +] | ||
102 | +``` |
-
Please register or login to post a comment