Changes between Version 5 and Version 6 of appApiRules
- Timestamp:
- 12/01/2014 04:02:19 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
appApiRules
v5 v6 3 3 4 4 {{{ 5 通用接口请求参数 5 6 ------------------------------------------------------------------------------------------------------------------ 6 7 '''通用接口请求参数'''8 9 7 req_enc=utf-8 请求参数编码 10 8 … … 18 16 19 17 20 '''常用的参数字段'''21 18 19 20 常用的参数字段 21 ------------------------------------------------------------------------------------------------------------------ 22 22 userId : 用户ID 23 23 … … 44 44 total : 返回数据总数 45 45 46 47 48 49 通用接口返回参数 46 50 ------------------------------------------------------------------------------------------------------------------ 47 48 '''通用接口返回参数'''49 50 51 userId : 用户ID 51 52 … … 64 65 callback : 回调方法 65 66 66 pageNo : 返回页码(>=1),如果接口返回有分页处理则生效 ''(注:pageNo最大值为100)''67 pageNo : 返回页码(>=1),如果接口返回有分页处理则生效(注:pageNo最大值为100) 67 68 68 pageSize : 返回页长度,如果接口返回有分页处理则生效 ''(注:pageSize最大值为100)''69 pageSize : 返回页长度,如果接口返回有分页处理则生效(注:pageSize最大值为100) 69 70 70 71 pageCount : 返回总页数,如果接口返回有分页处理则生效 … … 80 81 81 82 83 84 名词解释 82 85 ------------------------------------------------------------------------------------------------------------------ 83 84 '''名词解释'''85 86 86 接口URL: 接口URL 87 87 … … 96 96 缓存时间: xx,设置Response Http Headers Cache-Control:max-age=xx(单位/秒) 97 97 98 99 98 全局接口返回格式:json 100 99 100 101 102 接口URL定义 101 103 ------------------------------------------------------------------------------------------------------------------ 102 103 '''接口URL定义'''104 105 104 a.URL前缀为/appapi/ 106 105 … … 109 108 例如:/appapi/3.0/clubs/123.do 110 109 }}} 111
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)