Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

Name a BT with Method-Endpoint-Header in Custom Match Rule with Custom Expressions

Name a BT with Method-Endpoint-Header in Custom Match Rule with Custom Expressions

Hi,
I would like to compose a BT name as:

Method-Endpoint-Header

(e.g. POST-/api/customer/-HeaderValue)

I’ve used Custom Match Rule with a Custom Expression, that includes .split()s in the getter chain acting on the HTTPServletRequest object.
What I need is to know if there is the possibility to replace dynamic content in the Endpoint segment with a static string (e.g. if Endpoint is /api/customer/1234 I’d imagine something like a .replace([0-9]+,”id”), as it happens with .split(\/)).

Is it possible or should I create specific rules for endpoints that contains dynamic contents?
Thanks.

Name a BT with Method-Endpoint-Header in Custom Match Rule with Custom Expressions