Hello,
I have modified the configuration of the API proxy from:
<BasePath>/api/v1/poc</BasePath>
to
<BasePath>/api/*/poc</BasePath>
And now requests to “/api/v2/poc” work correctly but requests to “/api/v1/poc” do not work and returns the following error:
{“fault”:{“faultstring”: “Unable to identify proxy for host: default and url: \/api\/v1\/poc/poc/status\/200“, ‘detail’:{”errorcode": ‘messaging.adapters.http.flow.ApplicationNotFound’}}}%}}}
Regards,
It works for me.
$ curl -i $apigee/wildcard-basepath/v1/poc/t1
HTTP/2 200
content-type: application/json
apiproxy: wildcard-basepath r3
x-request-id: 6dd285ce-1fb7-46e6-bc4b-67c9d1b700b0
content-length: 120
date: Thu, 14 Nov 2024 05:14:07 GMT
via: 1.1 google, 1.1 google
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
{
"status" : "ok",
"request.uri" : "/wildcard-basepath/v1/poc/t1",
"timeStamp" : "2024-11-14 05-14-07 UTC"
}
$ curl -i $apigee/wildcard-basepath/v2/poc/t1
HTTP/2 200
content-type: application/json
apiproxy: wildcard-basepath r3
x-request-id: 390d35de-bb55-4618-ad2b-55e4500888fe
content-length: 120
date: Thu, 14 Nov 2024 05:14:09 GMT
via: 1.1 google, 1.1 google
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
{
"status" : "ok",
"request.uri" : "/wildcard-basepath/v2/poc/t1",
"timeStamp" : "2024-11-14 05-14-10 UTC"
}
$ curl -i $apigee/wildcard-basepath/v3/poc/t1
HTTP/2 200
content-type: application/json
apiproxy: wildcard-basepath r3
x-request-id: ba6e08ef-6899-4d6f-9323-acc419fc0c4b
content-length: 120
date: Thu, 14 Nov 2024 05:14:13 GMT
via: 1.1 google, 1.1 google
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
{
"status" : "ok",
"request.uri" : "/wildcard-basepath/v3/poc/t1",
"timeStamp" : "2024-11-14 05-14-13 UTC"
}
Please find attached a working example API proxy.
This works for Apigee X. You didn’t specify which version of Apigee you’re using.
1 Like
Thank you, it works correctly.
My mistake was to modify the “ProxyEndpoint” and not add a new one with the wildcard configuration.