如何在 WSO2 API Manager 1.8 中使用查询参数? [英] How to Use Query Params With WSO2 API Manager 1.8?
本文介绍了如何在 WSO2 API Manager 1.8 中使用查询参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Wso2 API 管理器 1.8 .我创建了一个 APIhttp://example.com:8280/api/test/v1/user/{userId}/content.json ,这里 userID 值动态出现.正常的 API 调用工作正常,即
I am using Wso2 API manager 1.8 . I have created one API http://example.com:8280/api/test/v1/user/{userId}/content.json , Here userID value Coming dynamically .Normal API call working fine , ie
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>
为什么会发生这种情况?.
Why this happening ?.
Here is my api xml source code .
<resource methods="OPTIONS POST GET"
uri-template="/user/{userId}/content.json"
faultSequence="fault">
<inSequence>
我该如何解决问题.请提出一些解决方案
How can I solve the Problem. Please suggest some solution
推荐答案
这里的问题是您的 URL 与资源模式不匹配.查看此帖子以获取示例
Issue here is your URL does not match with resource pattern. Check this post for a sample
这篇关于如何在 WSO2 API Manager 1.8 中使用查询参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文