我已经在WSO2 API管理器上配置了REST,其中有一个查询Param。当从订阅服务器(从API控制台)调用时,请求将被定向到后端。但是,从API控制台发送的查询Param没有反映在BE变量中。Java是Java。
实际为URL:
http://localhost:9000/APIMgmtRestFulServiceLengthFinder/testrest/lengthFinder/query?param1=sreedharAPI :/APIMgmtRestFulServiceLengthFinder/testrest/lengthFinder中的上下文URL
API :/query中的url模式
Sandbox URL:
http://localhost:9000/APIMgmtRestFulServiceLengthFinder/testrest/lengthFinder/query?
你好,斯里达尔
发布于 2016-05-30 06:12:40
我解决了上面的问题。但是,我重新创建了一个新的REST项目并应用了它。以下是更新的URL
访问网址: http://localhost:9000/UserManagement/rest/UserService/lengthFinder?param1=sreedhar
上下文: /UserManagement/rest
URL模式: /UserService/lengthFinder 端点URL : http://localhost:9000/UserManagement/rest
发布于 2016-05-29 02:42:36
这就是您应该如何在api管理器中创建API。
您还可以通过curl调用它,以查看从api控制台调用时是否有问题。
https://stackoverflow.com/questions/37452248
复制相似问题