I'm trying to implement a home-made "API gateway" for my Azure Functions using proxies to forward requests to different deployment slots depending on a query string parameter:
myapi.azurewebsites.net/customer/123?organizationId=1 ----> myapi-prod.azurewebsites.net/customer/123?organizationId=1
myapi.azurewebsites.net/customer/123?organizationId=2 ----> myapi-test.azurewebsites.net/customer/123?organizationId=2
And so on and so forth.
I've RTFM but I still can't figure out how to properly write the Route Templates to achieve this
Q: How can I configure function proxies for this scenario?
Q2: Is there a way to programatically declare these proxy configurations without writing a bunch of JSON, similar to [FunctionName]
which allows me to declare my functions with a single attribute in my class?