-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MatchUri method. #28
Comments
This is what we were chatting about in #6. The thing is this will only be easy-ish for the simplest cases of URI Templates. If you have the copyright ability to contribute an algorithm to do the matching, we'd happily accept it. We'd likely want an object that takes a
|
So based off of Section 1.4 (which I just reread today) it would seem that this would be more plausible if the Matcher were also aware of what the possible values would be. As in the above example something like:
Or maybe have a separate object that maps the substitution names in the template to the allowed values? |
I currently have implemented a Anyway, I think I only will be implementing a subset of what may be supported, and so what has been implemented are just some ideas that could be used for the |
As shown in an example here, it would be nice given uri template to match a fully expanded uri. For example given uri template
and
to get back a dictionary
The text was updated successfully, but these errors were encountered: