{"action":"closed","number":22,"pull_request":{"url":"https://api.github.com/repos/bosssauce/ponzu/pulls/22","id":97998109,"html_url":"https://github.com/bosssauce/ponzu/pull/22","diff_url":"https://github.com/bosssauce/ponzu/pull/22.diff","patch_url":"https://github.com/bosssauce/ponzu/pull/22.patch","issue_url":"https://api.github.com/repos/bosssauce/ponzu/issues/22","number":22,"state":"closed","locked":false,"title":"[core] Add a index for content slugs allowing quicker lookup via slug","user":{"login":"nilslice","id":7517515,"avatar_url":"https://avatars.githubusercontent.com/u/7517515?v=3","gravatar_id":"","url":"https://api.github.com/users/nilslice","html_url":"https://github.com/nilslice","followers_url":"https://api.github.com/users/nilslice/followers","following_url":"https://api.github.com/users/nilslice/following{/other_user}","gists_url":"https://api.github.com/users/nilslice/gists{/gist_id}","starred_url":"https://api.github.com/users/nilslice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilslice/subscriptions","organizations_url":"https://api.github.com/users/nilslice/orgs","repos_url":"https://api.github.com/users/nilslice/repos","events_url":"https://api.github.com/users/nilslice/events{/privacy}","received_events_url":"https://api.github.com/users/nilslice/received_events","type":"User","site_admin":false},"body":"There is a high likelihood of users wanting to set slugs as the top-level URL structure for their public content routing. So rather than making a client-side map of content slugs to type & id to issue an API call, this PR allows the API call to be made with just a slug as a parameter.\r\n\r\nExample:\r\n<pre>GET    /api/content&slug=some-assigned-slug-value</pre>\r\n *(other params are ignored)*\r\n","created_at":"2016-12-14T17:27:32Z","updated_at":"2016-12-14T18:04:42Z","closed_at":"2016-12-14T18:04:42Z","merged_at":"2016-12-14T18:04:42Z","merge_commit_sha":"372bd05522a7730891778082c0e0875d47445d59","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bosssauce/ponzu/pulls/22/commits","review_comments_url":"https://api.github.com/repos/bosssauce/ponzu/pulls/22/comments","review_comment_url":"https://api.github.com/repos/bosssauce/ponzu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bosssauce/ponzu/issues/22/comments","statuses_url":"https://api.github.com/repos/bosssauce/ponzu/statuses/b3aa9440f62db5a530397c525a42b4fca7b27bab","head":{"label":"bosssauce:ponzu-dev","ref":"ponzu-dev","sha":"b3aa9440f62db5a530397c525a42b4fca7b27bab","user":{"login":"bosssauce","id":10588770,"avatar_url":"https://avatars.githubusercontent.com/u/10588770?v=3","gravatar_id":"","url":"https://api.github.com/users/bosssauce","html_url":"https://github.com/bosssauce","followers_url":"https://api.github.com/users/bosssauce/followers","following_url":"https://api.github.com/users/bosssauce/following{/other_user}","gists_url":"https://api.github.com/users/bosssauce/gists{/gist_id}","starred_url":"https://api.github.com/users/bosssauce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bosssauce/subscriptions","organizations_url":"https://api.github.com/users/bosssauce/orgs","repos_url":"https://api.github.com/users/bosssauce/repos","events_url":"https://api.github.com/users/bosssauce/events{/privacy}","received_events_url":"https://api.github.com/users/bosssauce/received_events","type":"Organization","site_admin":false},"repo":{"id":68429735,"name":"ponzu","full_name":"bosssauce/ponzu","owner":{"login":"bosssauce","id":10588770,"avatar_url":"https://avatars.githubusercontent.com/u/10588770?v=3","gravatar_id":"","url":"https://api.github.com/users/bosssauce","html_url":"https://github.com/bosssauce","followers_url":"https://api.github.com/users/bosssauce/followers","following_url":"https://api.github.com/users/bosssauce/following{/other_user}","gists_url":"https://api.github.com/users/bosssauce/gists{/gist_id}","starred_url":"https://api.github.com/users/bosssauce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bosssauce/subscriptions","organizations_url":"https://api.github.com/users/bosssauce/orgs","repos_url":"https://api.github.com/users/bosssauce/repos","events_url":"https://api.github.com/users/bosssauce/events{/privacy}","received_events_url":"https://api.github.com/users/bosssauce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bosssauce/ponzu","description":"Content as a Service CMS - automatic JSON API for \"thick client\" front-ends.","fork":false,"url":"https://api.github.com/repos/bosssauce/ponzu","forks_url":"https://api.github.com/repos/bosssauce/ponzu/forks","keys_url":"https://api.github.com/repos/bosssauce/ponzu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bosssauce/ponzu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bosssauce/ponzu/teams","hooks_url":"https://api.github.com/repos/bosssauce/ponzu/hooks","issue_events_url":"https://api.github.com/repos/bosssauce/ponzu/issues/events{/number}","events_url":"https://api.github.com/repos/bosssauce/ponzu/events","assignees_url":"https://api.github.com/repos/bosssauce/ponzu/assignees{/user}","branches_url":"https://api.github.com/repos/bosssauce/ponzu/branches{/branch}","tags_url":"https://api.github.com/repos/bosssauce/ponzu/tags","blobs_url":"https://api.github.com/repos/bosssauce/ponzu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bosssauce/ponzu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bosssauce/ponzu/git/refs{/sha}","trees_url":"https://api.github.com/repos/bosssauce/ponzu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bosssauce/ponzu/statuses/{sha}","languages_url":"https://api.github.com/repos/bosssauce/ponzu/languages","stargazers_url":"https://api.github.com/repos/bosssauce/ponzu/stargazers","contributors_url":"https://api.github.com/repos/bosssauce/ponzu/contributors","subscribers_url":"https://api.github.com/repos/bosssauce/ponzu/subscribers","subscription_url":"https://api.github.com/repos/bosssauce/ponzu/subscription","commits_url":"https://api.github.com/repos/bosssauce/ponzu/commits{/sha}","git_commits_url":"https://api.github.com/repos/bosssauce/ponzu/git/commits{/sha}","comments_url":"https://api.github.com/repos/bosssauce/ponzu/comments{/number}","issue_comment_url":"https://api.github.com/repos/bosssauce/ponzu/issues/comments{/number}","contents_url":"https://api.github.com/repos/bosssauce/ponzu/contents/{+path}","compare_url":"https://api.github.com/repos/bosssauce/ponzu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bosssauce/ponzu/merges","archive_url":"https://api.github.com/repos/bosssauce/ponzu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bosssauce/ponzu/downloads","issues_url":"https://api.github.com/repos/bosssauce/ponzu/issues{/number}","pulls_url":"https://api.github.com/repos/bosssauce/ponzu/pulls{/number}","milestones_url":"https://api.github.com/repos/bosssauce/ponzu/milestones{/number}","notifications_url":"https://api.github.com/repos/bosssauce/ponzu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bosssauce/ponzu/labels{/name}","releases_url":"https://api.github.com/repos/bosssauce/ponzu/releases{/id}","deployments_url":"https://api.github.com/repos/bosssauce/ponzu/deployments","created_at":"2016-09-17T03:30:07Z","updated_at":"2016-11-24T18:00:50Z","pushed_at":"2016-12-14T18:04:42Z","git_url":"git://github.com/bosssauce/ponzu.git","ssh_url":"git@github.com:bosssauce/ponzu.git","clone_url":"https://github.com/bosssauce/ponzu.git","svn_url":"https://github.com/bosssauce/ponzu","homepage":"https://ponzu-cms.org","size":2142,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":4,"default_branch":"master"}},"base":{"label":"bosssauce:master","ref":"master","sha":"8e1269385b2ea6bb8a115030a4a6f4c12fa24868","user":{"login":"bosssauce","id":10588770,"avatar_url":"https://avatars.githubusercontent.com/u/10588770?v=3","gravatar_id":"","url":"https://api.github.com/users/bosssauce","html_url":"https://github.com/bosssauce","followers_url":"https://api.github.com/users/bosssauce/followers","following_url":"https://api.github.com/users/bosssauce/following{/other_user}","gists_url":"https://api.github.com/users/bosssauce/gists{/gist_id}","starred_url":"https://api.github.com/users/bosssauce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bosssauce/subscriptions","organizations_url":"https://api.github.com/users/bosssauce/orgs","repos_url":"https://api.github.com/users/bosssauce/repos","events_url":"https://api.github.com/users/bosssauce/events{/privacy}","received_events_url":"https://api.github.com/users/bosssauce/received_events","type":"Organization","site_admin":false},"repo":{"id":68429735,"name":"ponzu","full_name":"bosssauce/ponzu","owner":{"login":"bosssauce","id":10588770,"avatar_url":"https://avatars.githubusercontent.com/u/10588770?v=3","gravatar_id":"","url":"https://api.github.com/users/bosssauce","html_url":"https://github.com/bosssauce","followers_url":"https://api.github.com/users/bosssauce/followers","following_url":"https://api.github.com/users/bosssauce/following{/other_user}","gists_url":"https://api.github.com/users/bosssauce/gists{/gist_id}","starred_url":"https://api.github.com/users/bosssauce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bosssauce/subscriptions","organizations_url":"https://api.github.com/users/bosssauce/orgs","repos_url":"https://api.github.com/users/bosssauce/repos","events_url":"https://api.github.com/users/bosssauce/events{/privacy}","received_events_url":"https://api.github.com/users/bosssauce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bosssauce/ponzu","description":"Content as a Service CMS - automatic JSON API for \"thick client\" front-ends.","fork":false,"url":"https://api.github.com/repos/bosssauce/ponzu","forks_url":"https://api.github.com/repos/bosssauce/ponzu/forks","keys_url":"https://api.github.com/repos/bosssauce/ponzu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bosssauce/ponzu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bosssauce/ponzu/teams","hooks_url":"https://api.github.com/repos/bosssauce/ponzu/hooks","issue_events_url":"https://api.github.com/repos/bosssauce/ponzu/issues/events{/number}","events_url":"https://api.github.com/repos/bosssauce/ponzu/events","assignees_url":"https://api.github.com/repos/bosssauce/ponzu/assignees{/user}","branches_url":"https://api.github.com/repos/bosssauce/ponzu/branches{/branch}","tags_url":"https://api.github.com/repos/bosssauce/ponzu/tags","blobs_url":"https://api.github.com/repos/bosssauce/ponzu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bosssauce/ponzu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bosssauce/ponzu/git/refs{/sha}","trees_url":"https://api.github.com/repos/bosssauce/ponzu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bosssauce/ponzu/statuses/{sha}","languages_url":"https://api.github.com/repos/bosssauce/ponzu/languages","stargazers_url":"https://api.github.com/repos/bosssauce/ponzu/stargazers","contributors_url":"https://api.github.com/repos/bosssauce/ponzu/contributors","subscribers_url":"https://api.github.com/repos/bosssauce/ponzu/subscribers","subscription_url":"https://api.github.com/repos/bosssauce/ponzu/subscription","commits_url":"https://api.github.com/repos/bosssauce/ponzu/commits{/sha}","git_commits_url":"https://api.github.com/repos/bosssauce/ponzu/git/commits{/sha}","comments_url":"https://api.github.com/repos/bosssauce/ponzu/comments{/number}","issue_comment_url":"https://api.github.com/repos/bosssauce/ponzu/issues/comments{/number}","contents_url":"https://api.github.com/repos/bosssauce/ponzu/contents/{+path}","compare_url":"https://api.github.com/repos/bosssauce/ponzu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bosssauce/ponzu/merges","archive_url":"https://api.github.com/repos/bosssauce/ponzu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bosssauce/ponzu/downloads","issues_url":"https://api.github.com/repos/bosssauce/ponzu/issues{/number}","pulls_url":"https://api.github.com/repos/bosssauce/ponzu/pulls{/number}","milestones_url":"https://api.github.com/repos/bosssauce/ponzu/milestones{/number}","notifications_url":"https://api.github.com/repos/bosssauce/ponzu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bosssauce/ponzu/labels{/name}","releases_url":"https://api.github.com/repos/bosssauce/ponzu/releases{/id}","deployments_url":"https://api.github.com/repos/bosssauce/ponzu/deployments","created_at":"2016-09-17T03:30:07Z","updated_at":"2016-11-24T18:00:50Z","pushed_at":"2016-12-14T18:04:42Z","git_url":"git://github.com/bosssauce/ponzu.git","ssh_url":"git@github.com:bosssauce/ponzu.git","clone_url":"https://github.com/bosssauce/ponzu.git","svn_url":"https://github.com/bosssauce/ponzu","homepage":"https://ponzu-cms.org","size":2142,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bosssauce/ponzu/pulls/22"},"html":{"href":"https://github.com/bosssauce/ponzu/pull/22"},"issue":{"href":"https://api.github.com/repos/bosssauce/ponzu/issues/22"},"comments":{"href":"https://api.github.com/repos/bosssauce/ponzu/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/bosssauce/ponzu/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/bosssauce/ponzu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bosssauce/ponzu/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/bosssauce/ponzu/statuses/b3aa9440f62db5a530397c525a42b4fca7b27bab"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"nilslice","id":7517515,"avatar_url":"https://avatars.githubusercontent.com/u/7517515?v=3","gravatar_id":"","url":"https://api.github.com/users/nilslice","html_url":"https://github.com/nilslice","followers_url":"https://api.github.com/users/nilslice/followers","following_url":"https://api.github.com/users/nilslice/following{/other_user}","gists_url":"https://api.github.com/users/nilslice/gists{/gist_id}","starred_url":"https://api.github.com/users/nilslice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilslice/subscriptions","organizations_url":"https://api.github.com/users/nilslice/orgs","repos_url":"https://api.github.com/users/nilslice/repos","events_url":"https://api.github.com/users/nilslice/events{/privacy}","received_events_url":"https://api.github.com/users/nilslice/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":3,"additions":158,"deletions":9,"changed_files":6}}
{"actor":{"display_login":"nilslice"}}