Skip to content

v1.0.85-alpha

Choose a tag to compare

@github-actions github-actions released this 11 Dec 16:44
4c3bda1
Search and replace policy (#59)

* Added ‘SearchAndReplace’ Apigee policy

* Renamed to ‘SearchAndReplaceResponse’

* Fixed typo

* Removed any ES6 syntax

* Added SearchAndReplaceResponse Apigee policy to sandbox

* Added JS file

* Updated name

* Moved flow in to the TargetEndpoint

* Updated the search and replace JS

* Debugging basePath and subdomain

* Debug context

* Debugging proxyRequest and targetRequest

* WIP

* Added timestamp

* WIP

* WIP

* WIP

* WIP

* WIP

* Using target.name in API host name

* Removed switch statement

* Using a request.url

* Removed targetName

* Updated JS

* Added check for ‘api.nhs.uk’ too

* Added api.nhs.uk

* Added a check for ‘api’

* Added debugging for ‘requestUrl’ and ‘environmentSubdomain’

* Moved ‘item’ variable outside the ‘for’ loop

* WIP: AssignMessage.CopyRequest

* Commented out the ‘CopyRequest’ flow

* Using ‘requestHostnameEnv’ in SearchAndReplaceResponse.js

* Debugging ‘requestHostnameEnv’ variable

* Removed debugging

* Updated the search and replace Regex

* Another tweak to the regex

* Added spaces back in