whook icon indicating copy to clipboard operation
whook copied to clipboard

Consider using URI template at the Whook's core

Open nfroidure opened this issue 2 years ago • 1 comments

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

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

nfroidure avatar Sep 07 '23 07:09 nfroidure

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 avatar Aug 18 '24 18:08 nfroidure

Closing in favor of https://github.com/nfroidure/whook/issues/118

nfroidure avatar Nov 06 '24 09:11 nfroidure