{"action":"closed","number":1339,"pull_request":{"url":"https://api.github.com/repos/ruby-grape/grape/pulls/1339","id":64235342,"html_url":"https://github.com/ruby-grape/grape/pull/1339","diff_url":"https://github.com/ruby-grape/grape/pull/1339.diff","patch_url":"https://github.com/ruby-grape/grape/pull/1339.patch","issue_url":"https://api.github.com/repos/ruby-grape/grape/issues/1339","number":1339,"state":"closed","locked":false,"title":"Implement Grape::API.recognize_path","user":{"login":"namusyaka","id":309329,"avatar_url":"https://avatars.githubusercontent.com/u/309329?v=3","gravatar_id":"","url":"https://api.github.com/users/namusyaka","html_url":"https://github.com/namusyaka","followers_url":"https://api.github.com/users/namusyaka/followers","following_url":"https://api.github.com/users/namusyaka/following{/other_user}","gists_url":"https://api.github.com/users/namusyaka/gists{/gist_id}","starred_url":"https://api.github.com/users/namusyaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namusyaka/subscriptions","organizations_url":"https://api.github.com/users/namusyaka/orgs","repos_url":"https://api.github.com/users/namusyaka/repos","events_url":"https://api.github.com/users/namusyaka/events{/privacy}","received_events_url":"https://api.github.com/users/namusyaka/received_events","type":"User","site_admin":false},"body":"ref #1072 \r\nI've tried to implement `Grape::DSL::InsideRoute#recognize_path`.\r\nIt returns value conforming the format like `[original pattern, expanded params]`.\r\n\r\nThis is a first step. I'd like to hear your opinions.\r\nThanks.","created_at":"2016-03-26T10:53:15Z","updated_at":"2016-03-28T10:50:38Z","closed_at":"2016-03-28T10:50:38Z","merged_at":"2016-03-28T10:50:38Z","merge_commit_sha":"4ec77891fe7621c75476b2416c119165d5ad3829","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ruby-grape/grape/pulls/1339/commits","review_comments_url":"https://api.github.com/repos/ruby-grape/grape/pulls/1339/comments","review_comment_url":"https://api.github.com/repos/ruby-grape/grape/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ruby-grape/grape/issues/1339/comments","statuses_url":"https://api.github.com/repos/ruby-grape/grape/statuses/1ff934b6f4bec2ff3f66971a72d1a1ad1cbc98ad","head":{"label":"namusyaka:implement-recognize_path","ref":"implement-recognize_path","sha":"1ff934b6f4bec2ff3f66971a72d1a1ad1cbc98ad","user":{"login":"namusyaka","id":309329,"avatar_url":"https://avatars.githubusercontent.com/u/309329?v=3","gravatar_id":"","url":"https://api.github.com/users/namusyaka","html_url":"https://github.com/namusyaka","followers_url":"https://api.github.com/users/namusyaka/followers","following_url":"https://api.github.com/users/namusyaka/following{/other_user}","gists_url":"https://api.github.com/users/namusyaka/gists{/gist_id}","starred_url":"https://api.github.com/users/namusyaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namusyaka/subscriptions","organizations_url":"https://api.github.com/users/namusyaka/orgs","repos_url":"https://api.github.com/users/namusyaka/repos","events_url":"https://api.github.com/users/namusyaka/events{/privacy}","received_events_url":"https://api.github.com/users/namusyaka/received_events","type":"User","site_admin":false},"repo":{"id":11215973,"name":"grape","full_name":"namusyaka/grape","owner":{"login":"namusyaka","id":309329,"avatar_url":"https://avatars.githubusercontent.com/u/309329?v=3","gravatar_id":"","url":"https://api.github.com/users/namusyaka","html_url":"https://github.com/namusyaka","followers_url":"https://api.github.com/users/namusyaka/followers","following_url":"https://api.github.com/users/namusyaka/following{/other_user}","gists_url":"https://api.github.com/users/namusyaka/gists{/gist_id}","starred_url":"https://api.github.com/users/namusyaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namusyaka/subscriptions","organizations_url":"https://api.github.com/users/namusyaka/orgs","repos_url":"https://api.github.com/users/namusyaka/repos","events_url":"https://api.github.com/users/namusyaka/events{/privacy}","received_events_url":"https://api.github.com/users/namusyaka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/namusyaka/grape","description":"An opinionated micro-framework for creating REST-like APIs in Ruby.","fork":true,"url":"https://api.github.com/repos/namusyaka/grape","forks_url":"https://api.github.com/repos/namusyaka/grape/forks","keys_url":"https://api.github.com/repos/namusyaka/grape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/namusyaka/grape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/namusyaka/grape/teams","hooks_url":"https://api.github.com/repos/namusyaka/grape/hooks","issue_events_url":"https://api.github.com/repos/namusyaka/grape/issues/events{/number}","events_url":"https://api.github.com/repos/namusyaka/grape/events","assignees_url":"https://api.github.com/repos/namusyaka/grape/assignees{/user}","branches_url":"https://api.github.com/repos/namusyaka/grape/branches{/branch}","tags_url":"https://api.github.com/repos/namusyaka/grape/tags","blobs_url":"https://api.github.com/repos/namusyaka/grape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/namusyaka/grape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/namusyaka/grape/git/refs{/sha}","trees_url":"https://api.github.com/repos/namusyaka/grape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/namusyaka/grape/statuses/{sha}","languages_url":"https://api.github.com/repos/namusyaka/grape/languages","stargazers_url":"https://api.github.com/repos/namusyaka/grape/stargazers","contributors_url":"https://api.github.com/repos/namusyaka/grape/contributors","subscribers_url":"https://api.github.com/repos/namusyaka/grape/subscribers","subscription_url":"https://api.github.com/repos/namusyaka/grape/subscription","commits_url":"https://api.github.com/repos/namusyaka/grape/commits{/sha}","git_commits_url":"https://api.github.com/repos/namusyaka/grape/git/commits{/sha}","comments_url":"https://api.github.com/repos/namusyaka/grape/comments{/number}","issue_comment_url":"https://api.github.com/repos/namusyaka/grape/issues/comments{/number}","contents_url":"https://api.github.com/repos/namusyaka/grape/contents/{+path}","compare_url":"https://api.github.com/repos/namusyaka/grape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/namusyaka/grape/merges","archive_url":"https://api.github.com/repos/namusyaka/grape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/namusyaka/grape/downloads","issues_url":"https://api.github.com/repos/namusyaka/grape/issues{/number}","pulls_url":"https://api.github.com/repos/namusyaka/grape/pulls{/number}","milestones_url":"https://api.github.com/repos/namusyaka/grape/milestones{/number}","notifications_url":"https://api.github.com/repos/namusyaka/grape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/namusyaka/grape/labels{/name}","releases_url":"https://api.github.com/repos/namusyaka/grape/releases{/id}","deployments_url":"https://api.github.com/repos/namusyaka/grape/deployments","created_at":"2013-07-06T09:10:52Z","updated_at":"2015-08-03T17:53:43Z","pushed_at":"2016-03-27T16:06:46Z","git_url":"git://github.com/namusyaka/grape.git","ssh_url":"git@github.com:namusyaka/grape.git","clone_url":"https://github.com/namusyaka/grape.git","svn_url":"https://github.com/namusyaka/grape","homepage":"http://intridea.github.io/grape","size":6590,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ruby-grape:master","ref":"master","sha":"7c98ebb7bdaa883e51cae6f7579f5c5c03d46c20","user":{"login":"ruby-grape","id":13624553,"avatar_url":"https://avatars.githubusercontent.com/u/13624553?v=3","gravatar_id":"","url":"https://api.github.com/users/ruby-grape","html_url":"https://github.com/ruby-grape","followers_url":"https://api.github.com/users/ruby-grape/followers","following_url":"https://api.github.com/users/ruby-grape/following{/other_user}","gists_url":"https://api.github.com/users/ruby-grape/gists{/gist_id}","starred_url":"https://api.github.com/users/ruby-grape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruby-grape/subscriptions","organizations_url":"https://api.github.com/users/ruby-grape/orgs","repos_url":"https://api.github.com/users/ruby-grape/repos","events_url":"https://api.github.com/users/ruby-grape/events{/privacy}","received_events_url":"https://api.github.com/users/ruby-grape/received_events","type":"Organization","site_admin":false},"repo":{"id":812393,"name":"grape","full_name":"ruby-grape/grape","owner":{"login":"ruby-grape","id":13624553,"avatar_url":"https://avatars.githubusercontent.com/u/13624553?v=3","gravatar_id":"","url":"https://api.github.com/users/ruby-grape","html_url":"https://github.com/ruby-grape","followers_url":"https://api.github.com/users/ruby-grape/followers","following_url":"https://api.github.com/users/ruby-grape/following{/other_user}","gists_url":"https://api.github.com/users/ruby-grape/gists{/gist_id}","starred_url":"https://api.github.com/users/ruby-grape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruby-grape/subscriptions","organizations_url":"https://api.github.com/users/ruby-grape/orgs","repos_url":"https://api.github.com/users/ruby-grape/repos","events_url":"https://api.github.com/users/ruby-grape/events{/privacy}","received_events_url":"https://api.github.com/users/ruby-grape/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ruby-grape/grape","description":"An opinionated micro-framework for creating REST-like APIs in Ruby.","fork":false,"url":"https://api.github.com/repos/ruby-grape/grape","forks_url":"https://api.github.com/repos/ruby-grape/grape/forks","keys_url":"https://api.github.com/repos/ruby-grape/grape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruby-grape/grape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruby-grape/grape/teams","hooks_url":"https://api.github.com/repos/ruby-grape/grape/hooks","issue_events_url":"https://api.github.com/repos/ruby-grape/grape/issues/events{/number}","events_url":"https://api.github.com/repos/ruby-grape/grape/events","assignees_url":"https://api.github.com/repos/ruby-grape/grape/assignees{/user}","branches_url":"https://api.github.com/repos/ruby-grape/grape/branches{/branch}","tags_url":"https://api.github.com/repos/ruby-grape/grape/tags","blobs_url":"https://api.github.com/repos/ruby-grape/grape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruby-grape/grape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruby-grape/grape/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruby-grape/grape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruby-grape/grape/statuses/{sha}","languages_url":"https://api.github.com/repos/ruby-grape/grape/languages","stargazers_url":"https://api.github.com/repos/ruby-grape/grape/stargazers","contributors_url":"https://api.github.com/repos/ruby-grape/grape/contributors","subscribers_url":"https://api.github.com/repos/ruby-grape/grape/subscribers","subscription_url":"https://api.github.com/repos/ruby-grape/grape/subscription","commits_url":"https://api.github.com/repos/ruby-grape/grape/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruby-grape/grape/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruby-grape/grape/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruby-grape/grape/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruby-grape/grape/contents/{+path}","compare_url":"https://api.github.com/repos/ruby-grape/grape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruby-grape/grape/merges","archive_url":"https://api.github.com/repos/ruby-grape/grape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruby-grape/grape/downloads","issues_url":"https://api.github.com/repos/ruby-grape/grape/issues{/number}","pulls_url":"https://api.github.com/repos/ruby-grape/grape/pulls{/number}","milestones_url":"https://api.github.com/repos/ruby-grape/grape/milestones{/number}","notifications_url":"https://api.github.com/repos/ruby-grape/grape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruby-grape/grape/labels{/name}","releases_url":"https://api.github.com/repos/ruby-grape/grape/releases{/id}","deployments_url":"https://api.github.com/repos/ruby-grape/grape/deployments","created_at":"2010-08-02T14:25:08Z","updated_at":"2016-03-28T06:19:12Z","pushed_at":"2016-03-28T10:50:38Z","git_url":"git://github.com/ruby-grape/grape.git","ssh_url":"git@github.com:ruby-grape/grape.git","clone_url":"https://github.com/ruby-grape/grape.git","svn_url":"https://github.com/ruby-grape/grape","homepage":"http://www.ruby-grape.org","size":8291,"stargazers_count":7143,"watchers_count":7143,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":836,"mirror_url":null,"open_issues_count":130,"forks":836,"open_issues":130,"watchers":7143,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ruby-grape/grape/pulls/1339"},"html":{"href":"https://github.com/ruby-grape/grape/pull/1339"},"issue":{"href":"https://api.github.com/repos/ruby-grape/grape/issues/1339"},"comments":{"href":"https://api.github.com/repos/ruby-grape/grape/issues/1339/comments"},"review_comments":{"href":"https://api.github.com/repos/ruby-grape/grape/pulls/1339/comments"},"review_comment":{"href":"https://api.github.com/repos/ruby-grape/grape/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ruby-grape/grape/pulls/1339/commits"},"statuses":{"href":"https://api.github.com/repos/ruby-grape/grape/statuses/1ff934b6f4bec2ff3f66971a72d1a1ad1cbc98ad"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"dblock","id":542335,"avatar_url":"https://avatars.githubusercontent.com/u/542335?v=3","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"comments":4,"review_comments":3,"commits":2,"additions":336,"deletions":277,"changed_files":6}}