Karate 在路径参数中请求具有“/”的资源

Karate 在路径参数中请求具有“/”的资源,karate,Karate,我必须请求一个路径参数中包含/字符的资源,我无法使用空手道请求该参数 例如,我的资源id是aaa/bbb,对应的URL是:http://localhost/resource/aaa%2Fbbb 如果我要求 Given url http://localhost/resource And path 'aaa/bbb' Given url http://localhost/resource And path 'aaa%2Fbbb' 空手道将请求http://localhost/resource/a

我必须请求一个路径参数中包含
/
字符的资源,我无法使用空手道请求该参数

例如,我的资源id是
aaa/bbb
,对应的URL是:
http://localhost/resource/aaa%2Fbbb

如果我要求

Given url http://localhost/resource
And path 'aaa/bbb'
Given url http://localhost/resource
And path 'aaa%2Fbbb'
空手道将请求
http://localhost/resource/aaa/bbb

如果我要求

Given url http://localhost/resource
And path 'aaa/bbb'
Given url http://localhost/resource
And path 'aaa%2Fbbb'
空手道将请求
http://localhost/resource/aaa%252Fbbb

有什么建议吗?

空手道正在遵循,听起来你的API设计得很糟糕。真正地路径中需要
/
字符

无论如何,这里是:

是的,就是这么简单