0

我正面临一个可用的“strip_path”功能的特殊问题

**Service Name**: application-svc
**Service Path**: /application

**Route for Service**: application-route
**Route Path**: /
**Strip_Path**: True

**Backend API**: /openapi

**Expected**:
calls made to www.xyz.com/applications/openapi will transform the url
from:  www.xyz.com/applications/openapi
to: www.xyz.com/openapi

**Actual Result**:
calls made to www.xyz.com/applications/openapi end up with  www.xyz.com/applicationsapplications/openapi

有人可以帮忙吗?

4

1 回答 1

0

Strip_Path 与 Route Path 相关,而不是 Route 和 Service Path。

要解决您的问题,请使用以下命令:

**Service Name**: application-svc
**Service Path**: 

**Route for Service**: application-route
**Route Path**: /applications
**Strip_Path**: True

**Backend API**: /openapi

**Expected**:
calls made to www.xyz.com/applications/openapi will transform the url
from:  www.xyz.com/applications/openapi
to: www.xyz.com/openapi

**Actual Result**:
calls made to www.xyz.com/applications/openapi end up with
www.xyz.com/openapi
于 2021-09-11T14:41:44.373 回答