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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user