Rename URL

<< Click to Display Table of Contents >>

Navigation:  Configuration > Admin Config >

Rename URL

Overview

Used if there is a requirement to rename keys or values in the GET or JSON structure of an incoming request

 

Rename Incoming Traffic Create/Edit Page

rename_traffic

1.Incoming URL, specify path for the incoming request

1.1.The path is absolute to HOST, i.e.: host name is http://controlledcare.com, the absolute path can be /api/ParseTraffic/ and the request would be sent to http://controlledcare.com/api/ParseTraffic/

1.2.Path can be extended to support multiple requests on similar path, i.e.: /api/ParseTraffic/, /api/ParseTraffic/path1/, /api/ParseTraffic/path2/ etc

2.Outgoing URL, where the incoming request would be redirected; specify a full path, i.e.: http://controlledcare.com/urldebug/catch

3.JSON, enable POST requests worker with JSON structure

4.URL, enable GET requests workere with URL parameters

 

Rename Incoming Traffic Parameter Create/Edit Page

rename_traffic_par

1.Original Key,

2.Modified Key

3.Original Value

4.Modified Value

 

Different usage combinations of the four above entries exist,

1.Renaming just the key parameter, indicate Original Key and Modified Key entries only, i.e.: you have a request http://controlledcare.com/api/ParseTraffic?test=1 and you need the key ‘test’ to be renamed to ‘apple’, then you would write ‘test’ in Original Key and ‘apple’ in Modified Key

2.Renaming just the value parameter, regardless of a key name, indicate Original Value and Modified Value entries only, i.e.: you have a request http://controlledcare.com/api/ParseTraffic?test=1&oranges=1 and you need to rename all ‘1’ values to ‘0’, then you would write ‘1’ in Original Value and ‘0’ in Modified Value and both keys ‘test’ and ‘oranges’ would get the value ‘0’

3.Renaming the value parameter for a specific key, similar to 2.2.2.5.2, except you would also specify Original Key entry, i.e.: you have a request http://controlledcare.com/api/ParseTraffic?test=1&oranges=1 and you need to rename ‘1’ to ‘0’ for key ‘test’, then you would write ‘test’ for Original Key, ‘1’ for Original Value and ‘0’ for Modified Value

4.Renaming both key and value, you would specify all four fields, Original Key, Modified Key, Original Value and Modified Value, i.e.: you have a request http://controlledcare.com/api/ParseTraffic?test=1 and you need the key ‘test’ to be renamed to ‘apple’ and value ‘1’ to be renamed to ‘0’, then you would write ‘test’ in Original Key, ‘apple’ in Modified Key, ‘1’ in Original Value and ‘0’ in Modified Value

5.If you would have contradicting Renaming Incoming Traffic Parameter entries, then the top entry in the list takes priority during parsing