Commit d0d0793
authored
Search and replace policy (#60)
* 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
* Added new search and replace regex1 parent 4c3bda1 commit d0d0793
1 file changed
Lines changed: 39 additions & 0 deletions
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
60 | 70 | | |
61 | 71 | | |
62 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
63 | 80 | | |
64 | 81 | | |
65 | 82 | | |
| |||
81 | 98 | | |
82 | 99 | | |
83 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
84 | 106 | | |
85 | 107 | | |
86 | 108 | | |
| |||
102 | 124 | | |
103 | 125 | | |
104 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
105 | 132 | | |
106 | 133 | | |
107 | 134 | | |
| |||
123 | 150 | | |
124 | 151 | | |
125 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
126 | 158 | | |
127 | 159 | | |
128 | 160 | | |
| |||
148 | 180 | | |
149 | 181 | | |
150 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
151 | 190 | | |
152 | 191 | | |
153 | 192 | | |
| |||
0 commit comments