【发布时间】:2015-06-05 14:28:04
【问题描述】:
我正在使用 Wso2 API 管理器 1.8 。我创建了一个 API http://example.com:8280/api/test/v1/user/{userId}/content.json , 这里 userID 值是动态的。正常的 API 调用工作正常,即
http://example.com:8280/api/test/v1/user /200/content.json ,I am
getting the results fine.Now I want to apply pagination. I am passing
some query-params with this ,ie http://example.com:8280/api/test/v1/user
/200/content.json?startIndex=0&count=1
But 403 forbidden error coming .
<ams:fault>
<ams:code>900906</ams:code>
<ams:message>No matching resource found in the API for the given
request</ams:message>
<ams:description>Access failure for API: /api/streams, version: v3
with key: b3672a32d5b152a979cc36cb4de7f9b</ams:description>
为什么会这样?
Here is my api xml source code .
<resource methods="OPTIONS POST GET"
uri-template="/user/{userId}/content.json"
faultSequence="fault">
<inSequence>
我该如何解决问题。请提出一些解决方案
【问题讨论】: