URI Template API
Expand URI Templates (RFC 6570) — the standard used by GitHub, OpenAPI/Swagger, HAL and many hypermedia APIs — to build URLs from a template and a set of variables. The expand endpoint takes a template such as /users/{user}{?page,per_page} and a JSON object of variables, and returns the finished URI with everything correctly percent-encoded. It implements all four levels of the spec: simple expansion {var}; reserved {+var} and fragment {#var} expansion; the label {.var}, path {/var}, path-style-parameter {;var}, query {?var} and query-continuation {&var} operators; multiple variables {x,y}; and the value modifiers — prefix {var:3} (first N characters) and explode {var*} (expand lists and maps element by element). Variables can be strings, lists or associative maps. The parse endpoint inspects a template and lists its expressions, operators and variable names. Everything is computed locally and deterministically, so it is instant and private. Ideal for REST and hypermedia clients, API SDKs and code generators, OpenAPI tooling, and link building. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This expands URI templates; for building or parsing query strings use a query-string API and for canonicalising URLs use a URL API.
api.oanor.com/uritemplate-api