From 5964ebc08892e76d3e7da7979f5375e2a8dbd08a Mon Sep 17 00:00:00 2001 From: TekH Date: Sun, 31 May 2026 11:11:58 +0200 Subject: [PATCH] Add `receiver-ui-annotation-fake` route to yarp.json Added a new route configuration `receiver-ui-annotation-fake` to the `yarp.json` file. This route is associated with the `receiver-ui` cluster, has an `Order` value of `10`, and matches requests to `/api/Annotation/{envelopeKey}` with `GET` and `HEAD` methods. A path transformation rewrites the route to `/fake-data/annotations.json`. --- EnvelopeGenerator.API/yarp.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/EnvelopeGenerator.API/yarp.json b/EnvelopeGenerator.API/yarp.json index d78a314f..3ca15072 100644 --- a/EnvelopeGenerator.API/yarp.json +++ b/EnvelopeGenerator.API/yarp.json @@ -41,6 +41,17 @@ "Methods": [ "GET", "HEAD" ] } }, + "receiver-ui-annotation-fake": { + "ClusterId": "receiver-ui", + "Order": 10, + "Match": { + "Path": "/api/Annotation/{envelopeKey}", + "Methods": [ "GET", "HEAD" ] + }, + "Transforms": [ + { "PathSet": "/fake-data/annotations.json" } + ] + }, "auth-login": { "ClusterId": "auth-hub", "Match": {