Changes between Version 73 and Version 74 of baby/interface


Ignore:
Timestamp:
07/18/2014 09:41:09 AM (12 years ago)
Author:
lianchijin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • baby/interface

    v73 v74  
    10351035{{{ 
    10361036  备注:我的收藏 
    1037   接口开发:吴全贵 
    1038   请求URL: 
    1039   HTTP请求方式:get 
    1040   是否需要登录:否 
    1041   返回格式:JSON 
    1042   缓存方式:无 
    1043   缓存时间:无 
    1044   请求参数: 
    1045   type:1文章  2帖子  3百科 4问答 5课程  6食谱 
    1046   设置header  Cookie = "common_session_id=xxxx"; 
    1047   pageNo 
    1048   pageSize 
    1049   返回参数 
    1050   { 
     1037  接口开发:谢思华 
     1038  请求URL:http://baike.pcbaby.com.cn/intf/app/2.0/favor_list_101.jsp  
     1039  HTTP请求方式:get 
     1040  是否需要登录:是 
     1041  返回格式:JSON 
     1042  缓存方式:无 
     1043  缓存时间:无 
     1044  请求参数: 
     1045  type:收藏对象类型(0文章;5帖子;1百科;6问答;7课程;8食谱) 
     1046  common_session_id:登录用户id 
     1047  pageNo:第几页 
     1048  pageSize:每页显示最大数量 
     1049  返回参数 
     1050示例1:有收藏数据 
     1051  { 
     1052   "RESPONSE_STATUS" = 200;//200  网络正常; 500  网络错误 
    10511053   collections:[ 
    10521054    { 
    1053        id: 
    1054        title: 
    1055        des: 
    1056     } 
    1057    ] 
    1058   } 
     1055      id:收藏对象标识码,可以是ID也可以是URL 
     1056      title:文章标题 
     1057    } 
     1058   pageNo = 1; 
     1059   pageSize = 10; 
     1060   total = 1; 
     1061   ] 
     1062  } 
     1063示例2:无收藏 
     1064  { 
     1065    "RESPONSE_STATUS" = 200; 
     1066    msg = " "找不到已收藏的列表"; 
     1067    result = 0; 
     1068 } 
     1069示例3:错误请求 
     1070 { 
     1071    "RESPONSE_STATUS": 500, 
     1072    "error-desc": "internal accountId,type", 
     1073    "uri": "intf/app/2.0/favor_list_101.jsp", 
     1074    "user-notice": "参数为空或不合法,或未登录" 
     1075 } 
    10591076}}} 
    10601077