{"id":26164743,"url":"https://github.com/optum/kong-path-based-routing","last_synced_at":"2025-10-24T08:06:28.651Z","repository":{"id":48235776,"uuid":"136239104","full_name":"Optum/kong-path-based-routing","owner":"Optum","description":"Used to support modifying the routing hostname based on parameters extracted from the request path","archived":false,"fork":false,"pushed_at":"2024-06-06T03:55:14.000Z","size":377,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-14T15:22:09.242Z","etag":null,"topics":["api-gateway","kong","optum"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Optum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-05T21:54:48.000Z","updated_at":"2024-06-06T03:55:17.000Z","dependencies_parsed_at":"2025-03-12T09:15:25.886Z","dependency_job_id":null,"html_url":"https://github.com/Optum/kong-path-based-routing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Fkong-path-based-routing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Fkong-path-based-routing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Fkong-path-based-routing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Fkong-path-based-routing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Optum","download_url":"https://codeload.github.com/Optum/kong-path-based-routing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248904652,"owners_count":21180838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-gateway","kong","optum"],"created_at":"2025-03-11T15:40:04.449Z","updated_at":"2025-10-24T08:06:23.614Z","avatar_url":"https://github.com/Optum.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kong Path-Based Routing\n## Overview\nThis plugin will enable informing the hostname which Kong will route to based on elements in the request URI path. It allows for the concactination of both Regex' performed on the request URI path, and constants to form the routing hostname. \n\nExample:\n\nkong-path-based-routing-plugin 'host_fields' args: \n```\n[\n  \"$/api/service/(%S+)/\",\n  \"$api/service/.*/v(%d+).\",\n  \"$api/service/.*/v*..(%d+)\",\n  \"-apitest.com\"\n]\n```\non a request URI of https://kong-gateway/api/service/myapp/v1.0\nto route with path: \"/api\"\nwould route to host:\nmyapp10-apitest.com/service/myapp/v1.0\n\nThe host given in the Service will not be used if this plugin is applied.\n\n## Supported Kong Releases\nKong \u003e= 1.x \n\n## Installation\nRecommended:\n```\n$ luarocks install kong-path-based-routing\n```\n\nOptional\n```\n$ git clone https://github.com/Optum/kong-path-based-routing\n$ cd /path/to/kong/plugins/kong-path-based-routing\n$ luarocks make *.rockspec\n```\n\n## Configuration\nThe plugin requires that regex's/constants be concatinated in the parameter \"host_fields\" to inform the upstream hostname.\nStrings given in the array begining with \"$\" will be treated as REGEX' to be applied to the URI path.\n\n## Maintainers\n[jeremyjpj0916](https://github.com/jeremyjpj0916)  \n[rsbrisci](https://github.com/rsbrisci)  \n\nFeel free to open issues, or refer to our Contribution Guidelines if you have any questions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptum%2Fkong-path-based-routing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptum%2Fkong-path-based-routing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptum%2Fkong-path-based-routing/lists"}