Expose catalog-api under /catalog/v1, decoupled from the backend path

Public routes no longer leak classic-models-api's own /api/v1 prefix.
request-transformer-advanced rewrites to the real backend path per route.
This commit is contained in:
Stéphane Tailland
2026-08-21 09:22:33 +02:00
parent dfb01f4c54
commit 4a1c772b80
5 changed files with 409 additions and 17 deletions
+14 -14
View File
@@ -13,7 +13,7 @@ spec:
- GET
- OPTIONS
paths:
- /classic-models/api/v1/productlines/
- /catalog/v1/productlines/
strip_path: false
tags:
- catalog
@@ -33,7 +33,7 @@ spec:
- POST
- OPTIONS
paths:
- /classic-models/api/v1/productlines/
- /catalog/v1/productlines/
strip_path: false
tags:
- catalog
@@ -53,7 +53,7 @@ spec:
- GET
- OPTIONS
paths:
- ~/classic-models/api/v1/productlines/(?<productline>[^#?/]+)/$
- ~/catalog/v1/productlines/(?<productline>[^#?/]+)/$
strip_path: false
tags:
- catalog
@@ -73,7 +73,7 @@ spec:
- PUT
- OPTIONS
paths:
- ~/classic-models/api/v1/productlines/(?<productline>[^#?/]+)/$
- ~/catalog/v1/productlines/(?<productline>[^#?/]+)/$
strip_path: false
tags:
- catalog
@@ -93,7 +93,7 @@ spec:
- PATCH
- OPTIONS
paths:
- ~/classic-models/api/v1/productlines/(?<productline>[^#?/]+)/$
- ~/catalog/v1/productlines/(?<productline>[^#?/]+)/$
strip_path: false
tags:
- catalog
@@ -113,7 +113,7 @@ spec:
- DELETE
- OPTIONS
paths:
- ~/classic-models/api/v1/productlines/(?<productline>[^#?/]+)/$
- ~/catalog/v1/productlines/(?<productline>[^#?/]+)/$
strip_path: false
tags:
- catalog
@@ -133,7 +133,7 @@ spec:
- GET
- OPTIONS
paths:
- ~/classic-models/api/v1/productlines/(?<productline>[^#?/]+)/products/$
- ~/catalog/v1/productlines/(?<productline>[^#?/]+)/products/$
strip_path: false
tags:
- catalog
@@ -153,7 +153,7 @@ spec:
- GET
- OPTIONS
paths:
- /classic-models/api/v1/products/
- /catalog/v1/products/
strip_path: false
tags:
- catalog
@@ -173,7 +173,7 @@ spec:
- POST
- OPTIONS
paths:
- /classic-models/api/v1/products/
- /catalog/v1/products/
strip_path: false
tags:
- catalog
@@ -193,7 +193,7 @@ spec:
- GET
- OPTIONS
paths:
- ~/classic-models/api/v1/products/(?<productcode>[^#?/]+)/$
- ~/catalog/v1/products/(?<productcode>[^#?/]+)/$
strip_path: false
tags:
- catalog
@@ -213,7 +213,7 @@ spec:
- PUT
- OPTIONS
paths:
- ~/classic-models/api/v1/products/(?<productcode>[^#?/]+)/$
- ~/catalog/v1/products/(?<productcode>[^#?/]+)/$
strip_path: false
tags:
- catalog
@@ -233,7 +233,7 @@ spec:
- PATCH
- OPTIONS
paths:
- ~/classic-models/api/v1/products/(?<productcode>[^#?/]+)/$
- ~/catalog/v1/products/(?<productcode>[^#?/]+)/$
strip_path: false
tags:
- catalog
@@ -253,7 +253,7 @@ spec:
- DELETE
- OPTIONS
paths:
- ~/classic-models/api/v1/products/(?<productcode>[^#?/]+)/$
- ~/catalog/v1/products/(?<productcode>[^#?/]+)/$
strip_path: false
tags:
- catalog
@@ -273,7 +273,7 @@ spec:
- GET
- OPTIONS
paths:
- ~/classic-models/api/v1/products/(?<productcode>[^#?/]+)/order-details/$
- ~/catalog/v1/products/(?<productcode>[^#?/]+)/order-details/$
strip_path: false
tags:
- catalog