Replies: 2 comments
-
Try the solution described here: #1267 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Why did you want to convert placeholder to a header? What's the goal? "Routes": [
{
"UpstreamPathTemplate": "/api/subscribers/{subscriberId}/widgets",
"DownstreamPathTemplate": "/api/widgets?subscriber={subscriberId}", // <<<--- your solution
// redundant now
"UpstreamHeaderTransform": {
"SubscriberId": "{subscriberId}"
},
}, You have to understand that by limitations our current Header Transform Placeholders logic supports only system predefined placeholders, but not placeholders from path templates... But Yes, it makes sense to have them in transformations too. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Expected Behavior / New Feature
I need to take a part of the route like
api/subscriber/{guid}
and create a header value that gets passed to the downstream services.I'm trying to do the following as part of
PreQueryStringBuilderMiddleware
:I've also tried this with no luck:
Actual Behavior / Motivation for New Feature
I don't see the header in the context of the request at the downstream controller. Is there another way to achieve this?
Specifications
Beta Was this translation helpful? Give feedback.
All reactions