forked from 3scale-labs/3scale_ws_api_for_java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReleaseNotes.txt
More file actions
126 lines (80 loc) · 3.41 KB
/
ReleaseNotes.txt
File metadata and controls
126 lines (80 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
Release Notes
-------------
v2.0.3.b3
---------
Added RESTEasy AuthorisationInterceptor.
Added init-param of ts_url to allow overriding of 3scale server address.
Added RESTEasy AuthorisationInterceptor.
The parameters are the same as the Authorization Servlet, but use context-param instead of init-param.
v2.0.3.b2
---------
Added extra keys to ensure the cache stores extra information
Added metrics hash to authorize call.
v2.0.3.b1
---------
Initial version of 2.0.3 for beta testing.
Added new AuthorizationServletFilter.
Removed V1 API functionality.
Refactored app_id/app_key to more closely follow the api spec.
To add the filter to your filter chain you need to add some lines to your web.xml file. This is an example.
<filter>
<filter-name>AuthorizationFilter</filter-name>
<filter-class>net.threescale.api.servlet.filter.AuthorizeServletFilter</filter-class>
<init-param>
<param-name>ts_provider_key</param-name>
<param-value>your 3scale provider key</param-value>
</init-param>
<init-param>
<param-name>ts_redirect_url</param-name>
<param-value>http://myexample.org/api_error.jsp</param-value>
</init-param>
<init-param>
<param-name>ts_app_id_param_name</param-name>
<param-value>api_app_id</param-value>
</init-param>
<init-param>
<param-name>ts_app_key_param_name</param-name>
<param-value>api_app_key</param-value>
</init-param>
<init-param>
<param-name>ts_referrer_param_name</param-name>
<param-value>api_referrer</param-value>
</init-param>
<init-param>
<param-name>ts_authorize_response_attr_name</param-name>
<param-value>api_auth_response</param-value>
</init-param>
</filter>
The ts_redirect_url is the page the request is redirected to if an authorization error occurs. If
this is not set the error information is returned to the user in the response body.
If this is set then the authorization_response session attribute will contain either an AuthorizationResponse
or an ApiException depending on the type of failure. For a failed authorization due to limits exceeded etc. it
will be an AuthorizationResponse, anything else will set an ApiException.
In this example the ts_app_id, ts_app_key, ts_referrer override the default names for the request parameters.
If you omit them they default to: 'app_id', 'app_key' and 'referrer'.
The ts_authorize_response is the attribute name used in the request's session for the Authorize response object
and defaults to 'authorize_response'
Then add a mapping for the request urls:
<filter-mapping>
<filter-name>AuthorizationFilter</filter-name>
<url-pattern>/api/*</url-pattern>
</filter-mapping>
You also need to place the threescale-api.jar in your classpath.
v2.0.2
------
Added caching for responses. Now transaction data will be cached at written to the server in one batch.
v2.0.1
------
Added caching based on JBoss Cache. This caches the authorize responses in a local cache.
V2.0.0
------
Added support for the new V2 API. See http://www.3scale.net/support/api-service-management-v2-0/ for
documentation.
V1.0.3
------
Added calls to the api to support the authorize/batch async calls.
Added example for async calls.
V1.0.2
------
Api.startTransaction now throws an APIException on failure. Previously it returned a numeric code.
Changed java doc and examples to use the latest production URL.