Here is something an API Provider team came to us with:
Proxy Path Desired:
/api/benefits/claims/v4.5/claimstatus.json
Gets mapped to this URL in the backend:
http://claims45-apiprod.company.com:80/benefits/claims/v4.5/claimstatus.json
So essentially we are tasked with taking /api/benefits/claims/v4.5/claimstatus.json and make it claims45 on the backend. I assume there is nothing already in Kong available to do this via regex or plugins in existence to handle such a strange use case.
I only guess the reason they want this is because rather than hosting a tomcat server with variety of micro-services broken out by uri’s they simple run different instances of stand alone spring boot api’s or something of that nature on different hosts. And with all of those hosts they would like to have one proxy that can route to lots of hosts in this manner.
So maybe just write a plugin that gets the uri elements and regex’s out the string needed to plop into a backend URL, a placeholder spot in the backend url set on the kong “service” to be replaced dynamically via the plugin. Would be nice to make this plugin extensible but I don’t see a really great way to do so, seems super specific/demanding but sometimes to seal the deal you just have to do it
.

? And the proper phase to do so in?