Changes between Version 3 and Version 4 of web-intf
- Timestamp:
- 12/06/2011 06:31:22 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
web-intf
v3 v4 5 5 1.当接口处理正常时,HTTP STATUS CODE 返回给200。包括有正常的业务数据和数据为空的情况。 6 6 2.当接口处理异常时,HTTP STATUS CODE 返回给500,并且给出具体的错误信息。 7 {{{ 8 9 { 10 "uri" : "/intf/albums-by-type.jsp", 11 "error-code":"20502", 12 "error-desc":"Need you follow uid.", 13 "user-notice":"给用户的提示放在这里" 14 } 15 16 }}} 17 7 18 3.接口默认的字符编码是UTF-8,接口需要实现对req-enc和resp-enc参数的支持。在JSP的最顶部,实现类似下面的代码: 8 19
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)