{"action":"closed","number":39,"pull_request":{"url":"https://api.github.com/repos/applegrain/rales-engine/pulls/39","id":45312658,"html_url":"https://github.com/applegrain/rales-engine/pull/39","diff_url":"https://github.com/applegrain/rales-engine/pull/39.diff","patch_url":"https://github.com/applegrain/rales-engine/pull/39.patch","issue_url":"https://api.github.com/repos/applegrain/rales-engine/issues/39","number":39,"state":"closed","locked":false,"title":"Automated API generation","user":{"login":"indiesquidge","id":3409645,"avatar_url":"https://avatars.githubusercontent.com/u/3409645?v=3","gravatar_id":"","url":"https://api.github.com/users/indiesquidge","html_url":"https://github.com/indiesquidge","followers_url":"https://api.github.com/users/indiesquidge/followers","following_url":"https://api.github.com/users/indiesquidge/following{/other_user}","gists_url":"https://api.github.com/users/indiesquidge/gists{/gist_id}","starred_url":"https://api.github.com/users/indiesquidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiesquidge/subscriptions","organizations_url":"https://api.github.com/users/indiesquidge/orgs","repos_url":"https://api.github.com/users/indiesquidge/repos","events_url":"https://api.github.com/users/indiesquidge/events{/privacy}","received_events_url":"https://api.github.com/users/indiesquidge/received_events","type":"User","site_admin":false},"body":"So this is that cool thing I was talking to you about that creates automatic documentation as you write your API. I practiced it on your `cusomter_controller_spec.rb`. The DSL introduces a bit of a new syntax, but it's not hard since it flows very nicely with RSpec. I would check out the file for more details, and I also have a blog post on it that should be done by the end of the day.\r\n\r\nThe cool part is what it gives you. After writing the specs, you can run `rake docs:generate` to create the static JSON files representing the data from the acceptance (controller) tests. `rspec_api_documentation` does all the heavy lifting, and then a gem called `apitome` will take that generated JSON and create a Bootstrapped page out of it!\r\n\r\nIf you pull down this branch, start up the rails server, and go to `http://localhost:3000/api/docs`, you'll see a very beautifully crafted page that shows off how to use your API, including the parameters, responses, descriptions, etc.","created_at":"2015-09-17T16:36:14Z","updated_at":"2015-10-14T21:19:20Z","closed_at":"2015-10-14T21:19:20Z","merged_at":"2015-10-14T21:19:20Z","merge_commit_sha":"557869e5e5ba527236ba73e52e2665a5d8f100ed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/applegrain/rales-engine/pulls/39/commits","review_comments_url":"https://api.github.com/repos/applegrain/rales-engine/pulls/39/comments","review_comment_url":"https://api.github.com/repos/applegrain/rales-engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/applegrain/rales-engine/issues/39/comments","statuses_url":"https://api.github.com/repos/applegrain/rales-engine/statuses/bf6b4ca18d2a5d3ff54ed33e9c296f38bb12d370","head":{"label":"indiesquidge:api-docs","ref":"api-docs","sha":"bf6b4ca18d2a5d3ff54ed33e9c296f38bb12d370","user":{"login":"indiesquidge","id":3409645,"avatar_url":"https://avatars.githubusercontent.com/u/3409645?v=3","gravatar_id":"","url":"https://api.github.com/users/indiesquidge","html_url":"https://github.com/indiesquidge","followers_url":"https://api.github.com/users/indiesquidge/followers","following_url":"https://api.github.com/users/indiesquidge/following{/other_user}","gists_url":"https://api.github.com/users/indiesquidge/gists{/gist_id}","starred_url":"https://api.github.com/users/indiesquidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiesquidge/subscriptions","organizations_url":"https://api.github.com/users/indiesquidge/orgs","repos_url":"https://api.github.com/users/indiesquidge/repos","events_url":"https://api.github.com/users/indiesquidge/events{/privacy}","received_events_url":"https://api.github.com/users/indiesquidge/received_events","type":"User","site_admin":false},"repo":{"id":42600260,"name":"rales-engine","full_name":"indiesquidge/rales-engine","owner":{"login":"indiesquidge","id":3409645,"avatar_url":"https://avatars.githubusercontent.com/u/3409645?v=3","gravatar_id":"","url":"https://api.github.com/users/indiesquidge","html_url":"https://github.com/indiesquidge","followers_url":"https://api.github.com/users/indiesquidge/followers","following_url":"https://api.github.com/users/indiesquidge/following{/other_user}","gists_url":"https://api.github.com/users/indiesquidge/gists{/gist_id}","starred_url":"https://api.github.com/users/indiesquidge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiesquidge/subscriptions","organizations_url":"https://api.github.com/users/indiesquidge/orgs","repos_url":"https://api.github.com/users/indiesquidge/repos","events_url":"https://api.github.com/users/indiesquidge/events{/privacy}","received_events_url":"https://api.github.com/users/indiesquidge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/indiesquidge/rales-engine","description":"","fork":true,"url":"https://api.github.com/repos/indiesquidge/rales-engine","forks_url":"https://api.github.com/repos/indiesquidge/rales-engine/forks","keys_url":"https://api.github.com/repos/indiesquidge/rales-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/indiesquidge/rales-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/indiesquidge/rales-engine/teams","hooks_url":"https://api.github.com/repos/indiesquidge/rales-engine/hooks","issue_events_url":"https://api.github.com/repos/indiesquidge/rales-engine/issues/events{/number}","events_url":"https://api.github.com/repos/indiesquidge/rales-engine/events","assignees_url":"https://api.github.com/repos/indiesquidge/rales-engine/assignees{/user}","branches_url":"https://api.github.com/repos/indiesquidge/rales-engine/branches{/branch}","tags_url":"https://api.github.com/repos/indiesquidge/rales-engine/tags","blobs_url":"https://api.github.com/repos/indiesquidge/rales-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/indiesquidge/rales-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/indiesquidge/rales-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/indiesquidge/rales-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/indiesquidge/rales-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/indiesquidge/rales-engine/languages","stargazers_url":"https://api.github.com/repos/indiesquidge/rales-engine/stargazers","contributors_url":"https://api.github.com/repos/indiesquidge/rales-engine/contributors","subscribers_url":"https://api.github.com/repos/indiesquidge/rales-engine/subscribers","subscription_url":"https://api.github.com/repos/indiesquidge/rales-engine/subscription","commits_url":"https://api.github.com/repos/indiesquidge/rales-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/indiesquidge/rales-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/indiesquidge/rales-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/indiesquidge/rales-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/indiesquidge/rales-engine/contents/{+path}","compare_url":"https://api.github.com/repos/indiesquidge/rales-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/indiesquidge/rales-engine/merges","archive_url":"https://api.github.com/repos/indiesquidge/rales-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/indiesquidge/rales-engine/downloads","issues_url":"https://api.github.com/repos/indiesquidge/rales-engine/issues{/number}","pulls_url":"https://api.github.com/repos/indiesquidge/rales-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/indiesquidge/rales-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/indiesquidge/rales-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/indiesquidge/rales-engine/labels{/name}","releases_url":"https://api.github.com/repos/indiesquidge/rales-engine/releases{/id}","created_at":"2015-09-16T16:42:16Z","updated_at":"2015-09-16T16:42:17Z","pushed_at":"2015-09-17T16:21:31Z","git_url":"git://github.com/indiesquidge/rales-engine.git","ssh_url":"git@github.com:indiesquidge/rales-engine.git","clone_url":"https://github.com/indiesquidge/rales-engine.git","svn_url":"https://github.com/indiesquidge/rales-engine","homepage":"","size":787,"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":"applegrain:master","ref":"master","sha":"8191461a2cea0ab17a8ba2492d72c84ca675f1d2","user":{"login":"applegrain","id":10555255,"avatar_url":"https://avatars.githubusercontent.com/u/10555255?v=3","gravatar_id":"","url":"https://api.github.com/users/applegrain","html_url":"https://github.com/applegrain","followers_url":"https://api.github.com/users/applegrain/followers","following_url":"https://api.github.com/users/applegrain/following{/other_user}","gists_url":"https://api.github.com/users/applegrain/gists{/gist_id}","starred_url":"https://api.github.com/users/applegrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/applegrain/subscriptions","organizations_url":"https://api.github.com/users/applegrain/orgs","repos_url":"https://api.github.com/users/applegrain/repos","events_url":"https://api.github.com/users/applegrain/events{/privacy}","received_events_url":"https://api.github.com/users/applegrain/received_events","type":"User","site_admin":false},"repo":{"id":42472526,"name":"rales-engine","full_name":"applegrain/rales-engine","owner":{"login":"applegrain","id":10555255,"avatar_url":"https://avatars.githubusercontent.com/u/10555255?v=3","gravatar_id":"","url":"https://api.github.com/users/applegrain","html_url":"https://github.com/applegrain","followers_url":"https://api.github.com/users/applegrain/followers","following_url":"https://api.github.com/users/applegrain/following{/other_user}","gists_url":"https://api.github.com/users/applegrain/gists{/gist_id}","starred_url":"https://api.github.com/users/applegrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/applegrain/subscriptions","organizations_url":"https://api.github.com/users/applegrain/orgs","repos_url":"https://api.github.com/users/applegrain/repos","events_url":"https://api.github.com/users/applegrain/events{/privacy}","received_events_url":"https://api.github.com/users/applegrain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/applegrain/rales-engine","description":"","fork":false,"url":"https://api.github.com/repos/applegrain/rales-engine","forks_url":"https://api.github.com/repos/applegrain/rales-engine/forks","keys_url":"https://api.github.com/repos/applegrain/rales-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/applegrain/rales-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/applegrain/rales-engine/teams","hooks_url":"https://api.github.com/repos/applegrain/rales-engine/hooks","issue_events_url":"https://api.github.com/repos/applegrain/rales-engine/issues/events{/number}","events_url":"https://api.github.com/repos/applegrain/rales-engine/events","assignees_url":"https://api.github.com/repos/applegrain/rales-engine/assignees{/user}","branches_url":"https://api.github.com/repos/applegrain/rales-engine/branches{/branch}","tags_url":"https://api.github.com/repos/applegrain/rales-engine/tags","blobs_url":"https://api.github.com/repos/applegrain/rales-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/applegrain/rales-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/applegrain/rales-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/applegrain/rales-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/applegrain/rales-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/applegrain/rales-engine/languages","stargazers_url":"https://api.github.com/repos/applegrain/rales-engine/stargazers","contributors_url":"https://api.github.com/repos/applegrain/rales-engine/contributors","subscribers_url":"https://api.github.com/repos/applegrain/rales-engine/subscribers","subscription_url":"https://api.github.com/repos/applegrain/rales-engine/subscription","commits_url":"https://api.github.com/repos/applegrain/rales-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/applegrain/rales-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/applegrain/rales-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/applegrain/rales-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/applegrain/rales-engine/contents/{+path}","compare_url":"https://api.github.com/repos/applegrain/rales-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/applegrain/rales-engine/merges","archive_url":"https://api.github.com/repos/applegrain/rales-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/applegrain/rales-engine/downloads","issues_url":"https://api.github.com/repos/applegrain/rales-engine/issues{/number}","pulls_url":"https://api.github.com/repos/applegrain/rales-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/applegrain/rales-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/applegrain/rales-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/applegrain/rales-engine/labels{/name}","releases_url":"https://api.github.com/repos/applegrain/rales-engine/releases{/id}","created_at":"2015-09-14T19:38:24Z","updated_at":"2015-09-15T05:34:07Z","pushed_at":"2015-10-14T21:19:20Z","git_url":"git://github.com/applegrain/rales-engine.git","ssh_url":"git@github.com:applegrain/rales-engine.git","clone_url":"https://github.com/applegrain/rales-engine.git","svn_url":"https://github.com/applegrain/rales-engine","homepage":"","size":1066,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/applegrain/rales-engine/pulls/39"},"html":{"href":"https://github.com/applegrain/rales-engine/pull/39"},"issue":{"href":"https://api.github.com/repos/applegrain/rales-engine/issues/39"},"comments":{"href":"https://api.github.com/repos/applegrain/rales-engine/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/applegrain/rales-engine/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/applegrain/rales-engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/applegrain/rales-engine/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/applegrain/rales-engine/statuses/bf6b4ca18d2a5d3ff54ed33e9c296f38bb12d370"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"applegrain","id":10555255,"avatar_url":"https://avatars.githubusercontent.com/u/10555255?v=3","gravatar_id":"","url":"https://api.github.com/users/applegrain","html_url":"https://github.com/applegrain","followers_url":"https://api.github.com/users/applegrain/followers","following_url":"https://api.github.com/users/applegrain/following{/other_user}","gists_url":"https://api.github.com/users/applegrain/gists{/gist_id}","starred_url":"https://api.github.com/users/applegrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/applegrain/subscriptions","organizations_url":"https://api.github.com/users/applegrain/orgs","repos_url":"https://api.github.com/users/applegrain/repos","events_url":"https://api.github.com/users/applegrain/events{/privacy}","received_events_url":"https://api.github.com/users/applegrain/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":8,"additions":1092,"deletions":93,"changed_files":21}}