Changes between Version 7 and Version 8 of 2ndchild/interface


Ignore:
Timestamp:
12/11/2013 03:31:39 PM (12 years ago)
Author:
hejingdong
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 2ndchild/interface

    v7 v8  
    3232 
    3333== 二.业务相关接口列表 == 
    34 === 1.频道接口 === 
     34=== 1.频道接口 (mrobot)=== 
    3535{{{ 
    3636URL: 
     
    4545        "title":"首页资讯", 
    4646        "view":"information-home/", 
    47         "url":"http://www.baidu.com" 
     47        "url":"" 
    4848    }, 
    4949    { 
     
    5151        "img":"http://img0.pcauto.com.cn/pcauto/1310/16/3233041_Img388290093_thumb.jpg", 
    5252        "title":"二胎政策", 
    53         "view":"more/", 
    54         "url":"http://www.baidu.com" 
     53        "view":"query-policy/", 
     54        "url":"" 
    5555    }, 
    5656    { 
     
    5858        "img":"http://img0.pcauto.com.cn/pcauto/1310/16/3233041_Img388290093_thumb.jpg", 
    5959        "title":"二胎百科", 
    60         "view":"more/", 
    61         "url":"http://www.baidu.com" 
     60        "view":"encyclopedia/", 
     61        "url":"" 
    6262    }, 
    6363    { 
     
    6565        "img":"http://img0.pcauto.com.cn/pcauto/1310/16/3233041_Img388290093_thumb.jpg", 
    6666        "title":"活动专区", 
    67         "view":"more/", 
    68         "url":"http://www.baidu.com" 
     67        "view":"activity/", 
     68        "url":"" 
    6969    }, 
    7070    { 
     
    7272        "img":"http://img0.pcauto.com.cn/pcauto/1310/16/3233041_Img388290093_thumb.jpg", 
    7373        "title":"收藏", 
    74         "view":"more/", 
    75         "url":"http://www.baidu.com" 
     74        "view":"collection/", 
     75        "url":"" 
    7676    }, 
    7777    { 
     
    7979        "img":"http://img0.pcauto.com.cn/pcauto/1310/16/3233041_Img388290093_thumb.jpg", 
    8080        "title":"设置", 
    81         "view":"more/", 
    82         "url":"http://www.baidu.com" 
     81        "view":"setting/", 
     82        "url":"" 
    8383    } 
    8484] 
    8585 
    8686}}} 
    87 === 2.资讯栏目接口 === 
     87=== 2.资讯栏目接口 (mrobot)=== 
    8888{{{ 
    8989URL: 
     
    9696        { 
    9797            "channelId": 22479, 
     98            "name": "头条"//栏目名称 
     99        }, 
     100        { 
     101            "channelId": 22478, 
    98102            "name": "备孕"//栏目名称 
     103        }, { 
     104            "channelId": 22479, 
     105            "name": "孕育"//栏目名称 
    99106        }, 
    100107        { 
     
    105112} 
    106113}}} 
    107 === 3.资讯文章列表接口 === 
     114=== 3.资讯文章列表接口 (mrobot)=== 
    108115{{{ 
    109116URL: 
     
    170177} 
    171178}}} 
    172 === 4.资讯文章终端接口 === 
     179=== 4.资讯文章终端接口 (mrobot)=== 
    173180{{{ 
    174181URL: 
     
    189196}}} 
    190197 
    191 === 5.资讯文章评论接口 === 
     198=== 5.资讯文章评论接口 (mrobot)=== 
    192199{{{ 
    193200URL: 
     
    268275提交方式:GET 
    269276参数: 
    270 返回结果:JSON 
    271  
    272 }}} 
    273 === 7.最新关注接口 === 
     277provinceId:省份id 
     278cityId:城市id 
     279districtId:区id 
     280返回结果:JSON 
     281{ 
     282    "result":0,(0失败,1成功) 
     283    "text":"广州尚未实施单独二胎政策" 
     284} 
     285}}} 
     286 
     287=== 7.地址查询接口 === 
     288{{{ 
     289URL: 
     290作用: 
     291提交方式:GET 
     292参数: 
     293返回结果:JSON 
     294{{{ 
     295{ 
     296   “provinces”:[ 
     297        "id":1, 
     298        "name":"广东", 
     299        "cities":[ 
     300            "id":1, 
     301            "name":"广州", 
     302            "districts":[ 
     303                "id":1, 
     304                "name":"天河" 
     305            ] 
     306        ] 
     307    ] 
     308} 
     309ps:先精确到区,如果有镇和街道的数据,则以此类推。 
     310}}} 
     311 
     312}}} 
     313 
     314=== 8.(热门话题)帖子接口 (mrobot)=== 
    274315{{{ 
    275316URL: 
     
    280321 
    281322}}} 
    282 === 8.(热门话题)帖子接口 === 
    283 {{{ 
    284 URL: 
    285 作用: 
    286 提交方式:GET 
    287 参数: 
     323=== 9.办事单位地点添加接口 === 
     324{{{ 
     325URL: 
     326作用: 
     327提交方式:POST 
     328参数: 
     329name:单位名称 
     330address:地址 
     331tel:联系电话 
     332返回结果:JSON 
     333{ 
     334“result”:1,(0失败,1成功) 
     335"msg":"提交成功" 
     336} 
     337}}} 
     338 
     339=== 10.单独二胎政策实施时间添加接口 === 
     340{{{ 
     341URL: 
     342作用: 
     343提交方式:POST 
     344参数: 
     345provinceId:省份id 
     346cityId:城市id 
     347districtId:区id 
     348date:实施时间,“2014-02-09”,格式 yyyy-MM-dd 
     349返回结果:JSON 
     350{ 
     351“result”:1,(0失败,1成功) 
     352"msg":"提交成功" 
     353} 
     354}}} 
     355=== 11.办事指南接口 === 
     356{{{ 
     357URL: 
     358作用: 
     359提交方式:GET 
     360参数: 
     361provinceId:省份id 
     362cityId:城市id 
     363districtId:区id 
    288364返回结果:HTML页面 
    289  
    290 }}} 
    291 === 9.办事单位地点添加接口 === 
     365点击步骤跳转协议:pcbadybrowser://procedure-detail/${id}?count=4&num=1 
     366}}} 
     367=== 12.办事指南详细解释接口 === 
     368{{{ 
     369URL: 
     370作用: 
     371提交方式:GET 
     372参数: 
     373返回结果:JSON 
     374{ 
     375  "description":"", 
     376  "unity"{ 
     377    "name":"", 
     378    "address":"", 
     379    "tel":"" 
     380  }, 
     381  "materials":[ 
     382    "身份证", 
     383    "户口簿" 
     384  ] 
     385} 
     386}}} 
     387=== 13.办事指南纠错接口 === 
    292388{{{ 
    293389URL: 
     
    295391提交方式:POST 
    296392参数: 
    297 返回结果:JSON 
    298  
    299 }}} 
    300 === 10.单独二胎政策实施时间添加接口 === 
    301 {{{ 
    302 URL: 
    303 作用: 
    304 提交方式:POST 
    305 参数: 
    306 返回结果:JSON 
    307  
    308 }}} 
    309 === 11.办事指南接口 === 
    310 {{{ 
    311 URL: 
    312 作用: 
    313 提交方式:GET 
    314 参数: 
    315 返回结果:JSON 
    316  
    317 }}} 
    318 === 12.办事指南纠错接口 === 
    319 {{{ 
    320 URL: 
    321 作用: 
    322 提交方式:POST 
    323 参数: 
    324 返回结果:JSON 
    325  
    326 }}} 
    327 === 13.办事指南详细解释接口 === 
    328 {{{ 
    329 URL: 
    330 作用: 
    331 提交方式:GET 
    332 参数: 
    333 返回结果:HTML页面 
     393以办事指南详细解释接口返回格式一致的json字符串 
     394data={ 
     395  "description":"", 
     396  "unity"{ 
     397    "name":"", 
     398    "address":"", 
     399    "tel":"" 
     400  }, 
     401  "materials":[ 
     402    "身份证", 
     403    "户口簿" 
     404  ] 
     405} 
     406返回结果:JSON 
    334407 
    335408}}} 
     
    425498  HTTPSQS_PUT_ERROR:接收错误 
    426499  HTTPSQS_PUT_OK:接收正常 
    427 PS:参照接口http://youpin.pchouse.com.cn/jsp/intf/update_user_token.jsp(许建有 
     500PS:参照接口http://youpin.pchouse.com.cn/jsp/intf/update_user_token.jsp(许建有,杨孟君 
    428501 
    429502}}}