-
Notifications
You must be signed in to change notification settings - Fork 62
[FEATURE] Support Routes with named wildcards #122
Description
Is your feature request related to a problem?
In addition to forwarding the params, should we also be able to support routes with parameters?
i.e.
new Route(POST, "/crud/update/{doc_id}")Our current process for locating
ExtensionRestHandlerslooks for an exact match to the URI to find the respective handler (See https://github.com/opensearch-project/opensearch-sdk-java/blob/main/src/main/java/org/opensearch/sdk/ExtensionsRunner.java#L228).Are route parameters functionality we want to support?
Originally posted by @cwperks in #111 (comment)
What solution would you like?
We need to change the matching in the ExtensionsRunner hashmap from exact, to parsing a request URI and allowing "wildcard" parameters.
What alternatives have you considered?
Java's path glob matching is probably a great fit here. I'll dig through Rest Handler code to see if that's how it's done there.