{"action":"closed","number":175,"pull_request":{"url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/175","id":73847428,"html_url":"https://github.com/kadamwhite/wordpress-rest-api/pull/175","diff_url":"https://github.com/kadamwhite/wordpress-rest-api/pull/175.diff","patch_url":"https://github.com/kadamwhite/wordpress-rest-api/pull/175.patch","issue_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/175","number":175,"state":"closed","locked":false,"title":"Create a script to automate downloading root API endpoint JSON","user":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?v=3","gravatar_id":"","url":"https://api.github.com/users/kadamwhite","html_url":"https://github.com/kadamwhite","followers_url":"https://api.github.com/users/kadamwhite/followers","following_url":"https://api.github.com/users/kadamwhite/following{/other_user}","gists_url":"https://api.github.com/users/kadamwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/kadamwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadamwhite/subscriptions","organizations_url":"https://api.github.com/users/kadamwhite/orgs","repos_url":"https://api.github.com/users/kadamwhite/repos","events_url":"https://api.github.com/users/kadamwhite/events{/privacy}","received_events_url":"https://api.github.com/users/kadamwhite/received_events","type":"User","site_admin":false},"body":"It is possible to reduce the size of the stored JSON objects by about 60% by removing all argument descriptions and all _links definitions. This script provides a new NPM alias, `npm run download-endpoint-json`, which will query the API endpoint at http://wpapi.loc (assuming the presence of github.com/kadamwhite/wpapi-vagrant-varietal), or at an endpoint of your choice, to\r\n\r\n1. Download the JSON from the API root endpoint\r\n2. Run that JSON through a utility method to remove unneeded properties\r\n3. Output the JSON into `lib/data/endpoint-response.json` (or a JSON file of your choice)\r\n\r\nThis may also be run against an arbitrary WP-API endpoint using the `--endpoint` flag, and piped into an arbitrary output directory `--output`. (The `endpoint-response.json` filename is currently not configurable.)","created_at":"2016-06-15T03:33:58Z","updated_at":"2016-06-15T03:36:18Z","closed_at":"2016-06-15T03:36:18Z","merged_at":"2016-06-15T03:36:18Z","merge_commit_sha":"69d18fbd3f0b14376cac06b63d92fe562d3132cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/175/commits","review_comments_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/175/comments","review_comment_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/175/comments","statuses_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/statuses/69d18fbd3f0b14376cac06b63d92fe562d3132cb","head":{"label":"kadamwhite:create-download-endpoint-json-script","ref":"create-download-endpoint-json-script","sha":"69d18fbd3f0b14376cac06b63d92fe562d3132cb","user":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?v=3","gravatar_id":"","url":"https://api.github.com/users/kadamwhite","html_url":"https://github.com/kadamwhite","followers_url":"https://api.github.com/users/kadamwhite/followers","following_url":"https://api.github.com/users/kadamwhite/following{/other_user}","gists_url":"https://api.github.com/users/kadamwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/kadamwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadamwhite/subscriptions","organizations_url":"https://api.github.com/users/kadamwhite/orgs","repos_url":"https://api.github.com/users/kadamwhite/repos","events_url":"https://api.github.com/users/kadamwhite/events{/privacy}","received_events_url":"https://api.github.com/users/kadamwhite/received_events","type":"User","site_admin":false},"repo":{"id":20412692,"name":"wordpress-rest-api","full_name":"kadamwhite/wordpress-rest-api","owner":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?v=3","gravatar_id":"","url":"https://api.github.com/users/kadamwhite","html_url":"https://github.com/kadamwhite","followers_url":"https://api.github.com/users/kadamwhite/followers","following_url":"https://api.github.com/users/kadamwhite/following{/other_user}","gists_url":"https://api.github.com/users/kadamwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/kadamwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadamwhite/subscriptions","organizations_url":"https://api.github.com/users/kadamwhite/orgs","repos_url":"https://api.github.com/users/kadamwhite/repos","events_url":"https://api.github.com/users/kadamwhite/events{/privacy}","received_events_url":"https://api.github.com/users/kadamwhite/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kadamwhite/wordpress-rest-api","description":"A JavaScript client for the WordPress JSON API","fork":false,"url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api","forks_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/forks","keys_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/teams","hooks_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/hooks","issue_events_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/events{/number}","events_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/events","assignees_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/assignees{/user}","branches_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/branches{/branch}","tags_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/tags","blobs_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/statuses/{sha}","languages_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/languages","stargazers_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/stargazers","contributors_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/contributors","subscribers_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/subscribers","subscription_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/subscription","commits_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/contents/{+path}","compare_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/merges","archive_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/downloads","issues_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues{/number}","pulls_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls{/number}","milestones_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/milestones{/number}","notifications_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/labels{/name}","releases_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/releases{/id}","deployments_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/deployments","created_at":"2014-06-02T17:20:53Z","updated_at":"2016-06-14T21:26:27Z","pushed_at":"2016-06-15T03:36:18Z","git_url":"git://github.com/kadamwhite/wordpress-rest-api.git","ssh_url":"git@github.com:kadamwhite/wordpress-rest-api.git","clone_url":"https://github.com/kadamwhite/wordpress-rest-api.git","svn_url":"https://github.com/kadamwhite/wordpress-rest-api","homepage":"","size":921,"stargazers_count":308,"watchers_count":308,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":52,"mirror_url":null,"open_issues_count":29,"forks":52,"open_issues":29,"watchers":308,"default_branch":"master"}},"base":{"label":"kadamwhite:master","ref":"master","sha":"c1a2d49153b7abe3a529c6a5c1e4d0fa943a9564","user":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?v=3","gravatar_id":"","url":"https://api.github.com/users/kadamwhite","html_url":"https://github.com/kadamwhite","followers_url":"https://api.github.com/users/kadamwhite/followers","following_url":"https://api.github.com/users/kadamwhite/following{/other_user}","gists_url":"https://api.github.com/users/kadamwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/kadamwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadamwhite/subscriptions","organizations_url":"https://api.github.com/users/kadamwhite/orgs","repos_url":"https://api.github.com/users/kadamwhite/repos","events_url":"https://api.github.com/users/kadamwhite/events{/privacy}","received_events_url":"https://api.github.com/users/kadamwhite/received_events","type":"User","site_admin":false},"repo":{"id":20412692,"name":"wordpress-rest-api","full_name":"kadamwhite/wordpress-rest-api","owner":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?v=3","gravatar_id":"","url":"https://api.github.com/users/kadamwhite","html_url":"https://github.com/kadamwhite","followers_url":"https://api.github.com/users/kadamwhite/followers","following_url":"https://api.github.com/users/kadamwhite/following{/other_user}","gists_url":"https://api.github.com/users/kadamwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/kadamwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadamwhite/subscriptions","organizations_url":"https://api.github.com/users/kadamwhite/orgs","repos_url":"https://api.github.com/users/kadamwhite/repos","events_url":"https://api.github.com/users/kadamwhite/events{/privacy}","received_events_url":"https://api.github.com/users/kadamwhite/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kadamwhite/wordpress-rest-api","description":"A JavaScript client for the WordPress JSON API","fork":false,"url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api","forks_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/forks","keys_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/teams","hooks_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/hooks","issue_events_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/events{/number}","events_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/events","assignees_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/assignees{/user}","branches_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/branches{/branch}","tags_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/tags","blobs_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/statuses/{sha}","languages_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/languages","stargazers_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/stargazers","contributors_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/contributors","subscribers_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/subscribers","subscription_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/subscription","commits_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/contents/{+path}","compare_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/merges","archive_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/downloads","issues_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues{/number}","pulls_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls{/number}","milestones_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/milestones{/number}","notifications_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/labels{/name}","releases_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/releases{/id}","deployments_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/deployments","created_at":"2014-06-02T17:20:53Z","updated_at":"2016-06-14T21:26:27Z","pushed_at":"2016-06-15T03:36:18Z","git_url":"git://github.com/kadamwhite/wordpress-rest-api.git","ssh_url":"git@github.com:kadamwhite/wordpress-rest-api.git","clone_url":"https://github.com/kadamwhite/wordpress-rest-api.git","svn_url":"https://github.com/kadamwhite/wordpress-rest-api","homepage":"","size":921,"stargazers_count":308,"watchers_count":308,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":52,"mirror_url":null,"open_issues_count":29,"forks":52,"open_issues":29,"watchers":308,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/175"},"html":{"href":"https://github.com/kadamwhite/wordpress-rest-api/pull/175"},"issue":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/175"},"comments":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/175/comments"},"review_comments":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/175/comments"},"review_comment":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/175/commits"},"statuses":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/statuses/69d18fbd3f0b14376cac06b63d92fe562d3132cb"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?v=3","gravatar_id":"","url":"https://api.github.com/users/kadamwhite","html_url":"https://github.com/kadamwhite","followers_url":"https://api.github.com/users/kadamwhite/followers","following_url":"https://api.github.com/users/kadamwhite/following{/other_user}","gists_url":"https://api.github.com/users/kadamwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/kadamwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadamwhite/subscriptions","organizations_url":"https://api.github.com/users/kadamwhite/orgs","repos_url":"https://api.github.com/users/kadamwhite/repos","events_url":"https://api.github.com/users/kadamwhite/events{/privacy}","received_events_url":"https://api.github.com/users/kadamwhite/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":344,"deletions":2,"changed_files":7}}
{"actor":{"display_login":"kadamwhite"}}