Commit cbcb793
authored
Search and replace policy (#54)
* 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’ loop1 parent 4923dad commit cbcb793
2 files changed
Lines changed: 24 additions & 6 deletions
File tree
- proxies
- live/apiproxy/resources/jsc
- sandbox/apiproxy/resources/jsc
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
79 | | - | |
| 83 | + | |
80 | 84 | | |
81 | | - | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
86 | 95 | | |
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
79 | | - | |
| 83 | + | |
80 | 84 | | |
81 | | - | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
86 | 95 | | |
0 commit comments