cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Service API transformation rules

henk_stobbe
Mentor

Hello,

 

Because the documentation is not 100% accurate:

 

Starting with service aaa-bbb-ccc:9010:

 

"transformations": [

      {

        "type": "AFTER",

        "delimiter": "-"

      }

 

result ===>bbb-ccc:9010

 

"type": "REPLACE_BETWEEN",

        "after": "aaa-",

        "before": "-ccc",

        "replacement": "eee"

 

result ===>aaa-eee-ccc:9010 (documentation states that aaa- and -ccc wil be removed!!!)

 

"type": "REPLACE_BETWEEN",

        "after": "aaa-",

        "before": "-fff",

        "replacement": "eee"

 

result ===>aaa-eee (equals a replace after)

 

"type": "REPLACE_BETWEEN",

        "after": "fff-",

        "before": "-ccc",

        "replacement": "eee"

 

result eee-ccc:9010 (equals a replace before)

 

Maybe it help someone

 

KR Henk

 

 

0 REPLIES 0