Build sales-api REST + MCP layers (Layer 3), full build in one pass
14 routes: Order (single key, full CRUD + order-details sub-resource) and Orderdetail (composite key ordernumber+productcode, own top-level resource, mirrors backend's own URL structure). MCP layer built with the corrected single-route pattern from the start (STATUS.md section 18) — 7 tools, list/get read-only for all 5 roles, create-order/create-orderdetail for admin+customer+support (verified against OrderPermission/OrderScopedPermission.check() — support gets an unconditional class-level pass, the status-only restriction is object-level and doesn't apply to create). Keycloak (local): sales-api-audience + mcp-sales-audience client scopes, sales-api + mcp-sales resource clients, attached to the broker and librechat respectively. Deploy key and broker secret reused/mirrored from catalog-api and the live broker client, same pattern as customers-api/payments-api.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- rest/service.yaml
|
||||
- rest/routes.yaml
|
||||
- rest/path-rewrite.yaml
|
||||
- rest/path-rewrite-bindings.yaml
|
||||
- rest/kongplugin.yaml
|
||||
- rest/rate-limiting.yaml
|
||||
- rest/proxy-cache.yaml
|
||||
- rest/audit-log.yaml
|
||||
- rest/audit-log-body-capture.yaml
|
||||
- rest/audit-log-body-capture-bindings.yaml
|
||||
- rest/pluginbindings.yaml
|
||||
- mcp/service.yaml
|
||||
- mcp/routes.yaml
|
||||
- mcp/consumergroups.yaml
|
||||
- mcp/ai-mcp-proxy.yaml
|
||||
- mcp/openid-connect.yaml
|
||||
- mcp/audit-log.yaml
|
||||
- mcp/audit-log-body-capture.yaml
|
||||
- mcp/audit-log-body-capture-bindings.yaml
|
||||
- mcp/pluginbindings.yaml
|
||||
Reference in New Issue
Block a user