gpt4 book ai didi

wso2 - 如何在 WSO2 ESB 4.8 或更高版本中读取查询参数?

转载 作者:行者123 更新时间:2023-12-04 22:30:47 25 4
gpt4 key购买 nike

我在 WSO2ESB (4.8) 中有一个休息端点,我需要读取查询参数以将其设置为我的业务的动态有效负载,但是由于 wso2 ESB 更新,我无法读取它。有帮助吗?

最佳答案

下面的代码可以帮助你

<api xmlns="http://ws.apache.org/ns/synapse" name="sample" context="/api/sample">
<resource methods="OPTIONS GET" uri-template="/{val1}/groups/{val2}.json?q1={v1}&q2={v2}">
<inSequence>
<property name="uri.var.q1" expression="$url:q1"></property>
<property name="uri.var.q2" expression="$url:q2"></property>
<property name="uri.var.val1" expression="get-property('uri.var.val1')"></property>
<property name="uri.var.val2" expression="get-property('uri.var.val2')"></property>
<send>
<endpoint>
<http method="GET" uri-template=""></http>
</endpoint>
</send>
</inSequence>
<outSequence>
<send></send>
</outSequence>
</resource>
</api>

关于wso2 - 如何在 WSO2 ESB 4.8 或更高版本中读取查询参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27295902/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com