Showing
1 changed file
with
23 additions
and
14 deletions
@@ -14,29 +14,38 @@ GET参数: | @@ -14,29 +14,38 @@ GET参数: | ||
14 | 14 | ||
15 | ```json | 15 | ```json |
16 | { | 16 | { |
17 | - "day": [ | 17 | + "course_date": [ |
18 | { | 18 | { |
19 | - "2015-10-19": 2 | 19 | + "date": "2015-12-25", |
20 | + "count": 1 | ||
20 | }, | 21 | }, |
21 | { | 22 | { |
22 | - "2015-10-08": 7 | 23 | + "date": "2015-12-08", |
24 | + "count": 1 | ||
23 | }, | 25 | }, |
24 | { | 26 | { |
25 | - "2015-09-26": 2 | 27 | + "date": "2015-11-07", |
26 | - }, | 28 | + "count": 1 |
27 | - { | ||
28 | - "2015-09-24": 1 | ||
29 | - }, | ||
30 | - { | ||
31 | - "2015-09-21": 14 | ||
32 | - }, | ||
33 | - { | ||
34 | - "2015-08-31": 11 | ||
35 | } | 29 | } |
36 | - ] | 30 | + ], |
31 | + "link": "<http://192.168.0.104:3200/course/recommend/teacher/date?page=1>;rel=\"next\"" | ||
37 | } | 32 | } |
38 | ``` | 33 | ``` |
39 | 34 | ||
35 | +Response | ||
36 | + | ||
37 | +```json | ||
38 | +Access-Control-Allow-Headers → x-be-product,Content-Type | ||
39 | +Access-Control-Allow-Methods → GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, PATCH | ||
40 | +Access-Control-Allow-Origin → * | ||
41 | +Access-Control-Expose-Headers → Link | ||
42 | +Content-Length → 869 | ||
43 | +Content-Type → application/json;charset=UTF-8 | ||
44 | +Date → Tue, 29 Dec 2015 08:14:11 GMT | ||
45 | +ETag → "0ebc3b9f5ba30966a4a65f0ce86a6c957" | ||
46 | +Link → <http://192.168.0.104:3200/course/recommend/teacher/date?page=1>;rel="next" | ||
47 | +Server → Apache-Coyote/1.1 | ||
48 | +``` | ||
40 | #根据日期显示老师推荐的课程 - 老师端 | 49 | #根据日期显示老师推荐的课程 - 老师端 |
41 | 50 | ||
42 | 接口地址: /course/recommend/teacher/date/{date} | 51 | 接口地址: /course/recommend/teacher/date/{date} |
-
Please register or login to post a comment