Changes between Version 5 and Version 6 of appApiRules


Ignore:
Timestamp:
12/01/2014 04:02:19 PM (11 years ago)
Author:
zhouruxuan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • appApiRules

    v5 v6  
    33 
    44{{{ 
     5通用接口请求参数 
    56------------------------------------------------------------------------------------------------------------------ 
    6  
    7 '''通用接口请求参数''' 
    8  
    97req_enc=utf-8                   请求参数编码 
    108 
     
    1816 
    1917 
    20 '''常用的参数字段''' 
    2118 
     19 
     20常用的参数字段 
     21------------------------------------------------------------------------------------------------------------------ 
    2222userId : 用户ID 
    2323 
     
    4444total : 返回数据总数 
    4545 
     46 
     47 
     48 
     49通用接口返回参数 
    4650------------------------------------------------------------------------------------------------------------------ 
    47  
    48 '''通用接口返回参数''' 
    49  
    5051userId : 用户ID 
    5152 
     
    6465callback : 回调方法 
    6566 
    66 pageNo :     返回页码(>=1),如果接口返回有分页处理则生效''(注:pageNo最大值为100)'' 
     67pageNo :     返回页码(>=1),如果接口返回有分页处理则生效(注:pageNo最大值为100) 
    6768 
    68 pageSize :   返回页长度,如果接口返回有分页处理则生效''(注:pageSize最大值为100)'' 
     69pageSize :   返回页长度,如果接口返回有分页处理则生效(注:pageSize最大值为100) 
    6970 
    7071pageCount :  返回总页数,如果接口返回有分页处理则生效 
     
    8081 
    8182 
     83 
     84名词解释 
    8285------------------------------------------------------------------------------------------------------------------ 
    83  
    84 '''名词解释''' 
    85  
    8686接口URL:   接口URL 
    8787 
     
    9696缓存时间: xx,设置Response Http Headers Cache-Control:max-age=xx(单位/秒) 
    9797 
    98  
    9998全局接口返回格式:json 
    10099 
     100 
     101 
     102接口URL定义 
    101103------------------------------------------------------------------------------------------------------------------ 
    102  
    103 '''接口URL定义''' 
    104  
    105104a.URL前缀为/appapi/ 
    106105 
     
    109108例如:/appapi/3.0/clubs/123.do 
    110109}}} 
    111