Changes between Version 2 and Version 3 of baby/interface


Ignore:
Timestamp:
06/03/2014 11:31:59 AM (12 years ago)
Author:
hejingdong
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • baby/interface

    v2 v3  
    285285  } 
    286286}}} 
     287 
     288=== 4.0交流圈 === 
     289==== 4.1生活圈帖子列表 ==== 
     290{{{ 
     291  备注:生活圈帖子列表,时间倒序 
     292  请求URL:http:// 
     293  HTTP请求方式:get 
     294  是否需要登录:否 
     295  返回格式:JSON 
     296  缓存方式:无 
     297  缓存时间:无 
     298  请求参数: 
     299  channelId:当id为0时,为全部栏目的最新帖子 
     300  type:hot精华,new最新, 
     301  pageNo: 
     302  pageSize: 
     303  返回参数 
     304  { 
     305   id: 
     306   name: 
     307   topics:[ 
     308    { 
     309       id: 
     310       images:[ 
     311         "http://1", 
     312         "http://2", 
     313         "http://3", 
     314        ], 
     315       title: 
     316       sum: 
     317       author: 
     318       time:时间戳 
     319       collectedNum: 
     320       commentNum: 
     321    } 
     322   ] 
     323  } 
     324}}} 
     325 
     326==== 4.2生活圈栏目列表 ==== 
     327{{{ 
     328  备注:生活圈栏目列表 
     329  请求URL:http:// 
     330  HTTP请求方式:get 
     331  是否需要登录:否 
     332  返回格式:JSON 
     333  缓存方式:无 
     334  缓存时间:无 
     335  请求参数: 
     336  返回参数 
     337  { 
     338   id: 
     339   channels:[ 
     340    { 
     341       id: 
     342       name: 
     343       image: 
     344       des: 
     345    } 
     346   ] 
     347  } 
     348}}} 
     349 
     350==== 4.3帖子终端 ==== 
     351{{{ 
     352  备注:获取帖子内容 
     353  请求URL: 
     354  HTTP请求方式:get 
     355  是否需要登录:否 
     356  返回格式:html页面 
     357  缓存方式:无 
     358  缓存时间:无 
     359  请求参数: 
     360  tid: 
     361  pageNo:页码 
     362  pageSize:一页条数 
     363  设置header  Cookie = "common_session_id=xxxx"; 
     364  返回参数 
     365  加入一段注释,注释内的内容为一段json 
     366  /*@_HTML_META_START_ 
     367  {"favoriteId":-1,"pageCount":5,"pageNo":1,"title":"3月6日北京提2012款白色三厢2.0AT旗舰型作业","userId":32031278,"webUrl":"http://bbs.pcauto.com.cn/topic-4592911.html"} 
     368  _HTML_META_END_@*/ 
     369   
     370  点击图片,要有对应协议,可以参考接口: 
     371  http://mrobot.pcauto.com.cn/v2/bbs/topics/4592911?pageNo=1&pageSize=19&picRule=2&authorId=0&topicTemplate=4.0.0&app=pcautobrowser&size=18 
     372   
     373   
     374  url:http://piebbs.pconline.com.cn/rest/topics/${topicId} 
     375}}} 
     376 
     377 
     378==== 4.4帖子是否已收藏 ==== 
     379{{{ 
     380  备注:帖子是否已收藏 
     381  请求URL: 
     382  HTTP请求方式:get 
     383  是否需要登录:否 
     384  返回格式:JSON 
     385  缓存方式:无 
     386  缓存时间:无 
     387  请求参数: 
     388  tid: 
     389  设置header  Cookie = "common_session_id=xxxx"; 
     390  返回参数 
     391  { 
     392    msg: 
     393    result 
     394  } 
     395}}} 
     396 
     397==== 4.5回帖、发帖 ==== 
     398{{{ 
     399  备注:回帖、发帖 
     400  请求URL:http:// 
     401  HTTP请求方式:post 
     402  是否需要登录:是 
     403  返回格式:JSON 
     404  缓存方式:无 
     405  缓存时间:无 
     406  请求参数: 
     407   agent:1待验证 
     408   message = 内容; 
     409   replyToId = 回帖楼层id 
     410   tag:1性福,2婆媳,3情感,4职场,5姐妹,6邻里 
     411   设置header  Cookie = "common_session_id=xxxx"; 
     412  返回参数 
     413  { 
     414   msg: 
     415   result: 
     416  } 
     417}}} 
     418 
     419==== 4.6上传图片 ==== 
     420{{{ 
     421  备注:上传图片 
     422  请求URL:http://upc.pconline.com.cn/upload_quick.jsp?application=yidong 
     423  HTTP请求方式:post 
     424  是否需要登录:是 
     425  返回格式:JSON 
     426  缓存方式:无 
     427  缓存时间:无 
     428  请求参数: 
     429  file:文件名称,文件本体 
     430  富文本格式传送,该接口返回图片url,其被用于回帖或者发帖中贴图。   
     431}}} 
     432 
     433==== 4.7私密圈帖子列表 ==== 
     434{{{ 
     435  备注:私密圈帖子,时间倒序 
     436  请求URL: 
     437  HTTP请求方式:get 
     438  是否需要登录:否 
     439  返回格式:JSON 
     440  缓存方式:无 
     441  缓存时间:无 
     442  请求参数: 
     443  type:1私语,2话题 
     444  返回参数 
     445  { 
     446   id: 
     447   name: 
     448   topics:[ 
     449    { 
     450       id: 
     451       title: 
     452       des: 
     453       author: 
     454       time: 
     455       collectedNum: 
     456       commentNum: 
     457       type:1性福,2婆媳,3情感,4职场,5姐妹,6邻里 
     458    } 
     459   ] 
     460  } 
     461}}} 
     462 
     463==== 4.8私密圈闺蜜帖子列表 ==== 
     464{{{ 
     465  备注:私密圈闺蜜帖子,时间倒序 
     466  请求URL: 
     467  HTTP请求方式:get 
     468  是否需要登录:否 
     469  返回格式:JSON 
     470  缓存方式:无 
     471  缓存时间:无 
     472  请求参数: 
     473  返回参数 
     474  { 
     475   id: 
     476   name: 
     477   topics:[ 
     478    { 
     479       id: 
     480       image:"" 
     481       title: 
     482       des: 
     483       author: 
     484       time: 
     485       collectedNum: 
     486       commentNum: 
     487       type:1性福,2婆媳,3情感,4职场,5姐妹,6邻里 
     488       replyContent:回复内容 
     489       replyAuthorName: 
     490       replyAuthorId: 
     491       replyTime: 
     492    } 
     493   ] 
     494  } 
     495}}} 
     496 
     497=== 5.0问答 === 
     498==== 5.1问答搜索 ==== 
     499{{{ 
     500  备注:问答搜索 
     501  请求URL: 
     502  HTTP请求方式:get 
     503  是否需要登录:否 
     504  返回格式:JSON 
     505  缓存方式:无 
     506  缓存时间:无 
     507  请求参数: 
     508  keyword:关键字 
     509  pageNo 
     510  pageSize 
     511  返回参数 
     512  { 
     513   id: 
     514   name: 
     515   questions:[ 
     516    { 
     517       id: 
     518       question:"" 
     519       answer:"" 
     520       authorId: 
     521       authorFace: 
     522       authorName: 
     523       hospital: 
     524       department: 
     525       time: 
     526    } 
     527   ] 
     528  } 
     529}}} 
     530 
     531==== 5.2问答详情 ==== 
     532{{{ 
     533  备注:问答详情 
     534  请求URL: 
     535  HTTP请求方式:get 
     536  是否需要登录:否 
     537  返回格式:HTML页面 
     538  缓存方式:无 
     539  缓存时间:无 
     540  请求参数: 
     541  id:问题id 
     542  返回参数: 
     543}}} 
     544 
     545==== 5.3提问 ==== 
     546{{{ 
     547  备注:提问 
     548  请求URL:http:// 
     549  HTTP请求方式:post 
     550  是否需要登录:是 
     551  返回格式:JSON 
     552  缓存方式:无 
     553  缓存时间:无 
     554  请求参数: 
     555   title:问题标题 
     556   des = 问题描述; 
     557   typeId = 问题分类id 
     558   specialistId:专家id,可选 
     559   设置header  Cookie = "common_session_id=xxxx"; 
     560  返回参数 
     561  { 
     562   msg: 
     563   result: 
     564  } 
     565}}} 
     566 
     567==== 5.4问题分类 ==== 
     568{{{ 
     569  备注:问题分类 
     570  请求URL: 
     571  HTTP请求方式:get 
     572  是否需要登录:否 
     573  返回格式:JSON 
     574  缓存方式:无 
     575  缓存时间:无 
     576  请求参数: 
     577  返回参数 
     578  { 
     579   sections:[ 
     580     { 
     581       id: 
     582       name:备孕 
     583       types:[ 
     584         { 
     585            id:1 
     586            name:生男生女 
     587         }, 
     588         { 
     589            id:2 
     590            name:孕前饮食 
     591         } 
     592       ] 
     593     }, 
     594     { 
     595       id: 
     596       name:月子 
     597       types:[ 
     598         { 
     599            id:1 
     600            name:生男生女 
     601         }, 
     602         { 
     603            id:2 
     604            name:孕前饮食 
     605         } 
     606       ] 
     607     } 
     608   ] 
     609  } 
     610}}} 
     611 
     612 
     613 
     614 
     615 
     616 
     617 
     618 
     619 
     620 
     621 
     622 
     623 
     624 
     625