wso2 api 经理 PUT 方法在 api 商店中不起作用
wso2 api manager PUT method does not work in api store
Wso2 API 管理器 1.10.0。 PUT 方法在 API 商店中不起作用。
GET、POST、DELETE 方法有效,但 PUT 方法无效。
错误,
Curl
curl -X PUT --header "Content-Type: application/json" --header "Accept: application/json" --header "Authorization: Bearer c6c90338514e561c8a02a7b6a1c96553" -d "{\"payment\":\"PAID\"}" "https://10.138.31.22:8243/Starbucks_API/1/order_1"
Request URL
https://10.138.31.22:8243/Starbucks_API/1/order_1
Response Body
<ams:fault xmlns:ams="http://wso2.org/apimanager/security">
<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: /Starbucks_API/1, version: 1. Check the API documentation and add a proper REST resource path to the invocation URL</ams:description>
</ams:fault>
Response Code
403
Response Headers
{
"content-type": "application/xml; charset=UTF-8"
}
请求中给出的资源实际上是匹配的,我在API中提到过。
感谢任何帮助。
资源定义
您有两个相同 URL 的 PUT。您不能拥有两个具有相同 URL.
的不同 HTTP 资源
Wso2 API 管理器 1.10.0。 PUT 方法在 API 商店中不起作用。 GET、POST、DELETE 方法有效,但 PUT 方法无效。
错误,
Curl
curl -X PUT --header "Content-Type: application/json" --header "Accept: application/json" --header "Authorization: Bearer c6c90338514e561c8a02a7b6a1c96553" -d "{\"payment\":\"PAID\"}" "https://10.138.31.22:8243/Starbucks_API/1/order_1"
Request URL
https://10.138.31.22:8243/Starbucks_API/1/order_1
Response Body
<ams:fault xmlns:ams="http://wso2.org/apimanager/security">
<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: /Starbucks_API/1, version: 1. Check the API documentation and add a proper REST resource path to the invocation URL</ams:description>
</ams:fault>
Response Code
403
Response Headers
{
"content-type": "application/xml; charset=UTF-8"
}
请求中给出的资源实际上是匹配的,我在API中提到过。 感谢任何帮助。
资源定义
您有两个相同 URL 的 PUT。您不能拥有两个具有相同 URL.
的不同 HTTP 资源