李振兴

Created 当前偏好下课程目录详细信息获取接口 (markdown)

  1 +###接口地址
  2 +
  3 +> /catalog
  4 +
  5 +###请求方式
  6 +
  7 +> get请求
  8 +
  9 +###请求参数
  10 +
  11 +> 无参数
  12 +
  13 +###返回值
  14 +######获取成功
  15 +
  16 +> 状态码:200
  17 +
  18 +```json
  19 +[
  20 + {
  21 + "id": 100100101,
  22 + "name": "TEXTBOOK"
  23 + },
  24 + {
  25 + "id": 102,
  26 + "name": "PASSAGE"
  27 + },
  28 + {
  29 + "id": 105,
  30 + "name": "PHONICS"
  31 + },
  32 + {
  33 + "id": 103,
  34 + "name": "DIALOG"
  35 + },
  36 + {
  37 + "id": 104,
  38 + "name": "WORDS"
  39 + },
  40 + {
  41 + "id": 101,
  42 + "name": "QUIZ",
  43 + "quiz": 1
  44 + },
  45 + {
  46 + "id": 106,
  47 + "name": "OTHERS"
  48 + }
  49 +]
  50 +```
  51 +######获取失败情况1
  52 +
  53 +> 状态码:404
  54 +
  55 +```json
  56 + {
  57 +"failed":"该用户未设置偏好"
  58 +}
  59 +```