放置请求未到达后端 api

Put request doen't reach backend api

我正在尝试向我的后端 api 发送一个放置请求,但我需要一个令牌并在获取请求时使用它,所以问题不在于令牌,而是在我发出请求时响应是 202 接受并且不更新数据库。

这是代码

    <resource methods="PUT" uri-template="/Nurse">
    <inSequence>
        <enrich>
            <source clone="true" type="body"/>
            <target property="payload" type="property"/>
        </enrich>
        <property action="remove" name="REST_URL_POSTFIX" scope="axis2"/>
        <call blocking="true" description="">
            <endpoint>
                <address format="get" uri="http://192.168.20.1:8280/loginAPI/login"/>
            </endpoint>
        </call>
        <property expression="json-eval($.accessToken)" name="token" scope="default" type="STRING"/>
        <property expression="fn:concat('Bearer ',$ctx:token)" name="Authorization" scope="transport" type="STRING"/>
        <enrich description="Restore original payload">
            <source property="payload" type="property"/>
            <target type="body"/>
        </enrich>
        <send>
            <endpoint key="PutNurseEp"/>
        </send>
    </inSequence>
    <outSequence>
        <send/>
    </outSequence>
    <faultSequence/>
</resource>

任何人都可以帮助解决这里的问题吗?

问题解决了,错误出在邮递员请求上,我在 url

的开头添加了 space