Company
Date Published
Author
Peter Kim
Word count
442
Language
English
Hacker News points
None

Summary

API gateways often require URL rewriting to map publicly accessible endpoints to different upstream service endpoints, such as changing a base URI from /api/oilers to /titans/api. Kong Enterprise facilitates this process by allowing users to configure routes that automatically append URI parts to upstream service paths. For more complex scenarios, such as replacing segments like /api/<function>/oilers with /titans/api/<function>, Kong supports regex capture groups to preserve parts of the URI, which can be referenced by plugins like the Request Transformer Advanced. This setup involves creating services and routes with capturing groups and configuring the Request Transformer plugin to replace and append specific URI segments. These capabilities highlight Kong's powerful API management features, which are essential for enterprises looking to streamline their API handling.