{"id":13508345,"url":"https://github.com/pezra/ex-uri-template","last_synced_at":"2025-09-01T17:37:16.571Z","repository":{"id":33740199,"uuid":"37394869","full_name":"pezra/ex-uri-template","owner":"pezra","description":"RFC 6570 compliant URI template processor for Elixir","archived":false,"fork":false,"pushed_at":"2021-11-09T15:45:17.000Z","size":29,"stargazers_count":18,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-19T20:53:19.184Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pezra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-14T01:40:49.000Z","updated_at":"2024-06-20T08:53:35.000Z","dependencies_parsed_at":"2022-08-26T12:11:56.592Z","dependency_job_id":null,"html_url":"https://github.com/pezra/ex-uri-template","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pezra%2Fex-uri-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pezra%2Fex-uri-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pezra%2Fex-uri-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pezra%2Fex-uri-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pezra","download_url":"https://codeload.github.com/pezra/ex-uri-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228043472,"owners_count":17860611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T02:00:51.762Z","updated_at":"2024-12-04T04:24:57.062Z","avatar_url":"https://github.com/pezra.png","language":"Elixir","funding_links":[],"categories":["HTTP"],"sub_categories":[],"readme":"UriTemplate\n===========\n\n[![Build Status](https://travis-ci.org/pezra/ex-uri-template.svg?branch=master)](https://travis-ci.org/pezra/ex-uri-template)\n[![Module Version](https://img.shields.io/hexpm/v/uri_template.svg)](https://hex.pm/packages/uri_template)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/uri_template/)\n[![Total Download](https://img.shields.io/hexpm/dt/uri_template.svg)](https://hex.pm/packages/uri_template)\n[![License](https://img.shields.io/hexpm/l/uri_template.svg)](https://github.com/pezra/ex-uri-template/blob/master/LICENSE.md)\n[![Last Updated](https://img.shields.io/github/last-commit/pezra/ex-uri-template.svg)](https://github.com/pezra/ex-uri-template/commits/master)\n\n\n[RFC 6570](https://tools.ietf.org/html/rfc6570) compliant (level 3) URI template\nprocessor.\n\n## Usage\n\n```elixir\niex\u003e UriTemplate.expand(\"http://example.com/{id}\", id: 42)\n\"http://example.com/42\"\n\niex\u003e tmpl = UriTemplate.from_string \"http://example.com/{id}\"\n...\u003e UriTemplate.expand(tmpl,  id: 42)\n\"http://example.com/42\"\n...\u003e UriTemplate.expand(tmpl,  id: 84)\n\"http://example.com/84\"\n\niex\u003e UriTemplate.expand(\"http://example.com?q={terms}\", terms: \"fiz buzz\")\n\"http://example.com?q=fiz%20buzz\"\n\niex\u003e UriTemplate.expand(\"http://example.com?q={terms}\", terms: [\"fiz\", \"buzz\"])\n\"http://example.com?q=fiz,buzz\"\n\niex\u003e UriTemplate.expand(\"http://example.com?{k}\", k: [one: 1, two: 2])\n\"http://example.com?one,1,two,2\"\n\niex\u003e UriTemplate.expand(\"http://example.com/test\", id: 42)\n\"http://example.com/test\"\n\niex\u003e UriTemplate.expand(\"http://example.com/{lat,lng}\", lat: 40, lng: -105)\n\"http://example.com/40,-105\"\n\niex\u003e UriTemplate.expand(\"http://example.com/{;lat,lng}\", lat: 40, lng: -105)\n\"http://example.com/;lat=40;lng=-105\"\n\niex\u003e UriTemplate.expand(\"http://example.com/{?lat,lng}\", lat: 40, lng: -105)\n\"http://example.com/?lat=40\u0026lng=-105\"\n\niex\u003e UriTemplate.expand(\"http://example.com/?test{\u0026lat,lng}\", lat: 40, lng: -105)\n\"http://example.com/?test\u0026lat=40\u0026lng=-105\"\n\niex\u003e UriTemplate.expand(\"http://example.com{/lat,lng}\", lat: 40, lng: -105)\n\"http://example.com/40/-105\"\n\niex\u003e UriTemplate.expand(\"http://example.com/test{.fmt}\", fmt: \"json\")\n\"http://example.com/test.json\"\n\niex\u003e UriTemplate.expand(\"http://example.com{#lat,lng}\", lat: 40, lng: -105)\n\"http://example.com#40,-105\"\n\niex\u003e UriTemplate.expand(\"http://example.com/{longstr:6}\", longstr: \"thisisquitealongstring\")\n\"http://example.com/thisis\"\n\n```\n\n## Installation\n\nAdd the following to your project `:deps` list:\n\n```elixir\n{:uri_template, \"~\u003e1.0\"}\n```\n\n## Contributing\n\nTo run the tests:\n\n```sh\n$ mix deps.get\n$ git submodule update --init\n$ mix test\n```\n\n## Copyright and License\n\nCopyright (c) 2015 Peter Williams\n\nThis work is free. You can redistribute it and/or modify it under the\nterms of the MIT License. See the [LICENSE.md](./LICENSE.md) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpezra%2Fex-uri-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpezra%2Fex-uri-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpezra%2Fex-uri-template/lists"}