{"id":19026666,"url":"https://github.com/ianluites/resource_id","last_synced_at":"2026-06-17T18:34:33.818Z","repository":{"id":57543365,"uuid":"240738820","full_name":"IanLuites/resource_id","owner":"IanLuites","description":"REST endpoints without PII in URLs.","archived":false,"fork":false,"pushed_at":"2020-02-15T16:05:51.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T00:04:51.802Z","etag":null,"topics":["elixir","pii","plug"],"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/IanLuites.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-15T15:36:35.000Z","updated_at":"2021-09-15T18:38:11.000Z","dependencies_parsed_at":"2022-08-27T19:10:30.691Z","dependency_job_id":null,"html_url":"https://github.com/IanLuites/resource_id","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanLuites%2Fresource_id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanLuites%2Fresource_id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanLuites%2Fresource_id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanLuites%2Fresource_id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IanLuites","download_url":"https://codeload.github.com/IanLuites/resource_id/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240072349,"owners_count":19743569,"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":["elixir","pii","plug"],"created_at":"2024-11-08T20:49:58.707Z","updated_at":"2026-05-01T00:30:16.640Z","avatar_url":"https://github.com/IanLuites.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ResourceID\n\n[![Hex.pm](https://img.shields.io/hexpm/v/resource_id.svg \"Hex\")](https://hex.pm/packages/resource_id)\n[![Build Status](https://travis-ci.org/IanLuites/resource_id.svg?branch=master)](https://travis-ci.org/IanLuites/resource_id)\n[![Coverage Status](https://coveralls.io/repos/github/IanLuites/resource_id/badge.svg?branch=master)](https://coveralls.io/github/IanLuites/resource_id?branch=master)\n[![Hex.pm](https://img.shields.io/hexpm/l/resource_id.svg \"License\")](LICENSE)\n\nREST endpoints without PII in URLs.\n\n## Quick Setup\n\n```elixir\ndefmodule MyRouter do\n  use Plug.Router\n\n  plug ResourceID\n  plug :match\n  plug :dispatch\n\n  get \"/api/v1/users/:user/email\" do\n    ...\n  end\nend\n```\n\n## Configuration\n\n### prefix\n\nPrefix all headers with a set string.\nThis limits header user to only headers that start with the set prefix.\n\nExample:\n```elixir\nplug ResourceID, prefix: \"x-resource-\"\n```\n\n## Installation\n\nThe package can be installed\nby adding `resource_id` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:resource_id, \"~\u003e 1.0\"}\n  ]\nend\n```\n\nThe docs can be found at\n[https://hexdocs.pm/resource_id](https://hexdocs.pm/resource_id).\n\n## Changelog\n\n### 1.0.0 (2020-02-15)\n\nInitial release.\n\n## Copyright and License\n\nCopyright (c) 2020, Ian Luites.\n\nResourceID code is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianluites%2Fresource_id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianluites%2Fresource_id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianluites%2Fresource_id/lists"}