Commit 0c703e1
authored
[TT-16121] Generate relative server urls for APIs with no matching tags (#7544)
[TT-16121](https://tyktech.atlassian.net/browse/TT-16121)
Problem Solved
Previously, when an API was tagged but its tags didn't match any
configured edge endpoints, the system would
generate server URLs pointing to the control plane's default host (e.g.,
localhost:8080). This caused issues
in MDCB/hybrid deployments where:
APIs need to be accessible through multiple edge gateways
Edge gateways are dynamically added/removed
APIs should work across different edge locations without
re-configuration
Solution
The system now generates relative path URLs (e.g., /api/v1) when API
tags don't match edge endpoints, allowing
edge gateways to serve the API using their own hostname without
requiring API definition updates.
[TT-16121]:
https://tyktech.atlassian.net/browse/TT-16121?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
<!---TykTechnologies/jira-linter starts here-->
### Ticket Details
<details>
<summary>
<a href="https://tyktech.atlassian.net/browse/TT-16121" title="TT-16121"
target="_blank">TT-16121</a>
</summary>
| | |
|---------|----|
| Status | In Dev |
| Summary | Server URL generation logic enhancement for distributed
deployments |
Generated at: 2025-11-18 16:19:59
</details>
<!---TykTechnologies/jira-linter ends here-->1 parent 007b66a commit 0c703e1
File tree
4 files changed
+693
-29
lines changed- apidef/oas
- gateway
4 files changed
+693
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
237 | | - | |
238 | 239 | | |
239 | | - | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
252 | 307 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
258 | 316 | | |
259 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
260 | 324 | | |
261 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
262 | 329 | | |
263 | 330 | | |
264 | 331 | | |
265 | | - | |
266 | | - | |
267 | | - | |
| 332 | + | |
268 | 333 | | |
269 | 334 | | |
270 | | - | |
| 335 | + | |
271 | 336 | | |
272 | 337 | | |
273 | 338 | | |
274 | 339 | | |
275 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
276 | 346 | | |
277 | 347 | | |
278 | 348 | | |
| |||
0 commit comments