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
+3 -3
View File
@@ -23,7 +23,7 @@ config:
method: GET
scheme: http
host: ${REST_HOSTNAME}
path: /classic-models/api/v1/products/
path: /catalog/v1/products/
- name: get-product
description: Retrieves a single product by its product code.
annotations:
@@ -39,7 +39,7 @@ config:
method: GET
scheme: http
host: ${REST_HOSTNAME}
path: /classic-models/api/v1/products/{productcode}/
path: /catalog/v1/products/{productcode}/
parameters:
- name: productcode
in: path
@@ -60,7 +60,7 @@ config:
method: POST
scheme: http
host: ${REST_HOSTNAME}
path: /classic-models/api/v1/products/
path: /catalog/v1/products/
request_body:
required: true
content: