{"id":13878539,"url":"https://github.com/ruby-grape/mustermann-grape","last_synced_at":"2025-08-25T18:39:08.077Z","repository":{"id":12826058,"uuid":"72915051","full_name":"ruby-grape/mustermann-grape","owner":"ruby-grape","description":"Implements the grape pattern type for Mustermann.","archived":false,"fork":false,"pushed_at":"2023-11-24T14:24:52.000Z","size":35,"stargazers_count":8,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-17T11:02:54.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/ruby-grape.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-05T08:54:22.000Z","updated_at":"2024-04-24T07:35:52.000Z","dependencies_parsed_at":"2024-06-18T23:59:19.331Z","dependency_job_id":null,"html_url":"https://github.com/ruby-grape/mustermann-grape","commit_stats":{"total_commits":23,"total_committers":8,"mean_commits":2.875,"dds":0.7391304347826086,"last_synced_commit":"a626c4c0c5da618d8cfa1da13f2862b1cab2e467"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ruby-grape/mustermann-grape","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-grape%2Fmustermann-grape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-grape%2Fmustermann-grape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-grape%2Fmustermann-grape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-grape%2Fmustermann-grape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby-grape","download_url":"https://codeload.github.com/ruby-grape/mustermann-grape/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby-grape%2Fmustermann-grape/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271646356,"owners_count":24796059,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-06T08:01:52.492Z","updated_at":"2025-08-25T18:39:07.981Z","avatar_url":"https://github.com/ruby-grape.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Grape Syntax for Mustermann\n\nThis gem implements the `grape` pattern type for Mustermann.\n\n[![tests](https://github.com/ruby-grape/mustermann-grape/workflows/tests/badge.svg)](https://github.com/ruby-grape/mustermann-grape/actions?query=workflow%3Atests)\n\n## Overview\n\n**Supported options:**\n`capture`, `converters`, `except`, `greedy`, `ignore_unknown_options`, `params`, `space_matches_plus` and `uri_decode`\n\n``` ruby\nrequire 'mustermann/grape'\n\nMustermann.new('/:id', type: :grape).params('/foo') # =\u003e { id: 'foo' }\n\n# Providing params option\nMustermann.new('/:id', type: :grape, params: {\"id\"=\u003e{:type=\u003e\"Integer\"}}).params('/1') # =\u003e { id: '1'}\nMustermann.new('/:id', type: :grape, params: {\"id\"=\u003e{:type=\u003e\"Integer\"}}).params('/foo') # =\u003e nil\nMustermann.new('/:id', type: :grape, params: {\"id\"=\u003e{:type=\u003e\"String\"}}).params('/foo') # =\u003e { id: 'foo'}\n```\n\n## Syntax\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003eSyntax Element\u003c/th\u003e\n      \u003cth\u003eDescription\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cb\u003e:\u003c/b\u003e\u003ci\u003ename\u003c/i\u003e \u003ci\u003e\u003cb\u003eor\u003c/b\u003e\u003c/i\u003e \u003cb\u003e\u0026#123;\u003c/b\u003e\u003ci\u003ename\u003c/i\u003e\u003cb\u003e\u0026#125;\u003c/b\u003e\u003c/td\u003e\n      \u003ctd\u003e\n        Captures anything but a forward slash in a semi-greedy fashion. Capture is named \u003ci\u003ename\u003c/i\u003e.\n        Capture behavior can be modified with \u003ctt\u003ecapture\u003c/tt\u003e and \u003ctt\u003egreedy\u003c/tt\u003e option.\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cb\u003e*\u003c/b\u003e\u003ci\u003ename\u003c/i\u003e \u003ci\u003e\u003cb\u003eor\u003c/b\u003e\u003c/i\u003e \u003cb\u003e\u0026#123;+\u003c/b\u003e\u003ci\u003ename\u003c/i\u003e\u003cb\u003e\u0026#125;\u003c/b\u003e\u003c/td\u003e\n      \u003ctd\u003e\n        Captures anything in a non-greedy fashion. Capture is named \u003ci\u003ename\u003c/i\u003e.\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cb\u003e*\u003c/b\u003e \u003ci\u003e\u003cb\u003eor\u003c/b\u003e\u003c/i\u003e \u003cb\u003e\u0026#123;+splat\u0026#125;\u003c/b\u003e\u003c/td\u003e\n      \u003ctd\u003e\n        Captures anything in a non-greedy fashion. Capture is named splat.\n        It is always an array of captures, as you can use it more than once in a pattern.\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cb\u003e(\u003c/b\u003e\u003ci\u003eexpression\u003c/i\u003e\u003cb\u003e)\u003c/b\u003e\u003c/td\u003e\n      \u003ctd\u003e\n        Enclosed \u003ci\u003eexpression\u003c/i\u003e is optional.\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ci\u003eexpression\u003c/i\u003e\u003cb\u003e|\u003c/b\u003e\u003ci\u003eexpression\u003c/i\u003e\u003cb\u003e|\u003c/b\u003e\u003ci\u003e...\u003c/i\u003e\u003c/td\u003e\n      \u003ctd\u003e\n        Will match anything matching the nested expressions. May contain any other syntax element, including captures.\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ci\u003ex\u003c/i\u003e\u003cb\u003e?\u003c/b\u003e\u003c/td\u003e\n      \u003ctd\u003eMakes \u003ci\u003ex\u003c/i\u003e optional. For instance, \u003ctt\u003e(foo)?\u003c/tt\u003e matches \u003ctt\u003efoo\u003c/tt\u003e or an empty string.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cb\u003e/\u003c/b\u003e\u003c/td\u003e\n      \u003ctd\u003e\n        Matches forward slash. Does not match URI encoded version of forward slash.\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cb\u003e\\\u003c/b\u003e\u003ci\u003ex\u003c/i\u003e\u003c/td\u003e\n      \u003ctd\u003eMatches \u003ci\u003ex\u003c/i\u003e or URI encoded version of \u003ci\u003ex\u003c/i\u003e. For instance \u003ctt\u003e\\*\u003c/tt\u003e matches \u003ctt\u003e*\u003c/tt\u003e.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ci\u003eany other character\u003c/i\u003e\u003c/td\u003e\n      \u003ctd\u003eMatches exactly that character or a URI encoded version of it.\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby-grape%2Fmustermann-grape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby-grape%2Fmustermann-grape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby-grape%2Fmustermann-grape/lists"}