path

Version

Explanation:

The element's content is matched against the request path.

If isRegExp="true", the entire path must match the regular expression. If isRegExp="false", the path must start with the specified string.

When <path/> appears inside a <soapProxy/>, the isRegExp attribute must not be used.

When placed within an <api> (rather than a <serviceProxy>), you may use a URI template (e.g. /books/{id}). The path parameter will be available in scripts via the pathParam variable.


Syntax

path:
isRegExp: <boolean>
uri: <string>
path:
  isRegExp: <boolean>
  uri: <string>

Sample

<serviceProxy port="2000">
<path >/bank</path >
<target host="bank.predic8.de" />
</serviceProxy>
<serviceProxy port="2000">
  <path >/bank</path >
  <target host="bank.predic8.de" />
</serviceProxy>

Attributes

NameRequiredDefaultDescriptionExamples
isRegExpfalsefalseIf set to true the content will be evaluated as a Java Regular Expression.true
urifalse---

Can be used in