Skip to content
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

Consider using URI template at the Whook's core #166

Closed
nfroidure opened this issue Sep 7, 2023 · 2 comments
Closed

Consider using URI template at the Whook's core #166

nfroidure opened this issue Sep 7, 2023 · 2 comments
Assignees

Comments

@nfroidure
Copy link
Owner

nfroidure commented Sep 7, 2023

RFC
https://www.rfc-editor.org/rfc/rfc6570

Implementation: https://www.npmjs.com/package/uri-template

@nfroidure nfroidure self-assigned this Sep 7, 2023
@nfroidure
Copy link
Owner Author

nfroidure commented Aug 18, 2024

Well, this is probably not a good idea since the API templates ain't deterministic for routers. For example, a template like /{foo}{bar} is valid but it is not possible to guest which part of anyuri map ti the foo and bar variables. The URI template spec was meant for serializing URL but not for creating viable routers (netiher perfy ones).

@nfroidure
Copy link
Owner Author

Closing in favor of #118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant