I'm looking after solution where AWS Api Gateway changes method endpoint Url dynamically. I am familiar with stage variables and in Integration request I can change endpoint per method like (https://${stageVariables.Url}/api/DoSomething). What I need is that information how parse endpoint is included in requests. https://${RequestData.Url}/api/DoSomething I have same Api in different locations and to implement centralized Api keys and logging services I try to forward all traffic through this one Api Gateway. After first request client gets its endpoint information, but I don't know how to solve that clients next requests to Gateway should forward to that endpoint which client get earlier.
I got an answer from AWS support. They told that I have to make a lambda function to process all requests or just use Stage variables.