Files
kong-catalog-api/kong/rest/routes.yaml
T
Stéphane Tailland 4a1c772b80 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.
2026-08-21 09:22:33 +02:00

280 lines
5.7 KiB
YAML

apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-listproductlines
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_listproductlines
methods:
- GET
- OPTIONS
paths:
- /catalog/v1/productlines/
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-createproductline
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_createproductline
methods:
- POST
- OPTIONS
paths:
- /catalog/v1/productlines/
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-getproductline
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_getproductline
methods:
- GET
- OPTIONS
paths:
- ~/catalog/v1/productlines/(?<productline>[^#?/]+)/$
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-updateproductline
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_updateproductline
methods:
- PUT
- OPTIONS
paths:
- ~/catalog/v1/productlines/(?<productline>[^#?/]+)/$
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-patchproductline
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_patchproductline
methods:
- PATCH
- OPTIONS
paths:
- ~/catalog/v1/productlines/(?<productline>[^#?/]+)/$
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-deleteproductline
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_deleteproductline
methods:
- DELETE
- OPTIONS
paths:
- ~/catalog/v1/productlines/(?<productline>[^#?/]+)/$
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-listproductlineproducts
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_listproductlineproducts
methods:
- GET
- OPTIONS
paths:
- ~/catalog/v1/productlines/(?<productline>[^#?/]+)/products/$
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-listproducts
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_listproducts
methods:
- GET
- OPTIONS
paths:
- /catalog/v1/products/
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-createproduct
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_createproduct
methods:
- POST
- OPTIONS
paths:
- /catalog/v1/products/
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-getproduct
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_getproduct
methods:
- GET
- OPTIONS
paths:
- ~/catalog/v1/products/(?<productcode>[^#?/]+)/$
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-updateproduct
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_updateproduct
methods:
- PUT
- OPTIONS
paths:
- ~/catalog/v1/products/(?<productcode>[^#?/]+)/$
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-patchproduct
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_patchproduct
methods:
- PATCH
- OPTIONS
paths:
- ~/catalog/v1/products/(?<productcode>[^#?/]+)/$
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-deleteproduct
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_deleteproduct
methods:
- DELETE
- OPTIONS
paths:
- ~/catalog/v1/products/(?<productcode>[^#?/]+)/$
strip_path: false
tags:
- catalog
---
apiVersion: configuration.konghq.com/v1alpha1
kind: KongRoute
metadata:
name: ${NAME}-catalog-api-getproductorderdetails
namespace: ${NAMESPACE}
spec:
serviceRef:
type: namespacedRef
namespacedRef:
name: ${NAME}-catalog-api
name: catalog-api_getproductorderdetails
methods:
- GET
- OPTIONS
paths:
- ~/catalog/v1/products/(?<productcode>[^#?/]+)/order-details/$
strip_path: false
tags:
- catalog