Changes between Version 3 and Version 4 of web-intf


Ignore:
Timestamp:
12/06/2011 06:31:22 PM (14 years ago)
Author:
yangbo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • web-intf

    v3 v4  
    551.当接口处理正常时,HTTP STATUS CODE 返回给200。包括有正常的业务数据和数据为空的情况。 
    662.当接口处理异常时,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     
    7183.接口默认的字符编码是UTF-8,接口需要实现对req-enc和resp-enc参数的支持。在JSP的最顶部,实现类似下面的代码: 
    819