Changes between Version 5 and Version 6 of web-intf
- Timestamp:
- 12/07/2011 11:39:06 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
web-intf
v5 v6 4 4 {{{ 5 5 1.当接口处理正常时,HTTP STATUS CODE 返回给200。包括有正常的业务数据和数据为空的情况。 6 6 7 2.当接口处理异常时,HTTP STATUS CODE 返回给500,并且给出具体的错误信息。 7 {{{ 8 9 { 8 { 10 9 "uri" : "/intf/albums-by-type.jsp", 11 10 "error-code":"20502", 12 11 "error-desc":"Need you follow uid.", 13 12 "user-notice":"给用户的提示放在这里" 14 } 15 16 }}} 13 } 14 17 15 18 16 3.接口默认的字符编码是UTF-8,接口需要实现对req-enc和resp-enc参数的支持。在JSP的最顶部,实现类似下面的代码: … … 27 25 response.setCharacterEncoding(responseEncoding); 28 26 } 27 29 28 4.所有有写操作的数据接口,必须用POST方式提交,在接口里需要判断提交方式,拒绝GET的调用请求。 30 29
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)