{"action":"created","issue":{"url":"https://api.github.com/repos/wp-shortcake/shortcake/issues/583","repository_url":"https://api.github.com/repos/wp-shortcake/shortcake","labels_url":"https://api.github.com/repos/wp-shortcake/shortcake/issues/583/labels{/name}","comments_url":"https://api.github.com/repos/wp-shortcake/shortcake/issues/583/comments","events_url":"https://api.github.com/repos/wp-shortcake/shortcake/issues/583/events","html_url":"https://github.com/wp-shortcake/shortcake/pull/583","id":137871484,"number":583,"title":"Use WP Rest API infrastructure for previews","user":{"login":"mattheu","id":494927,"avatar_url":"https://avatars.githubusercontent.com/u/494927?v=3","gravatar_id":"","url":"https://api.github.com/users/mattheu","html_url":"https://github.com/mattheu","followers_url":"https://api.github.com/users/mattheu/followers","following_url":"https://api.github.com/users/mattheu/following{/other_user}","gists_url":"https://api.github.com/users/mattheu/gists{/gist_id}","starred_url":"https://api.github.com/users/mattheu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattheu/subscriptions","organizations_url":"https://api.github.com/users/mattheu/orgs","repos_url":"https://api.github.com/users/mattheu/repos","events_url":"https://api.github.com/users/mattheu/events{/privacy}","received_events_url":"https://api.github.com/users/mattheu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wp-shortcake/shortcake/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/wp-shortcake/shortcake/milestones/11","html_url":"https://github.com/wp-shortcake/shortcake/milestones/v0.7.0","labels_url":"https://api.github.com/repos/wp-shortcake/shortcake/milestones/11/labels","id":1351627,"number":11,"title":"v0.7.0","description":"","creator":{"login":"mattheu","id":494927,"avatar_url":"https://avatars.githubusercontent.com/u/494927?v=3","gravatar_id":"","url":"https://api.github.com/users/mattheu","html_url":"https://github.com/mattheu","followers_url":"https://api.github.com/users/mattheu/followers","following_url":"https://api.github.com/users/mattheu/following{/other_user}","gists_url":"https://api.github.com/users/mattheu/gists{/gist_id}","starred_url":"https://api.github.com/users/mattheu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattheu/subscriptions","organizations_url":"https://api.github.com/users/mattheu/orgs","repos_url":"https://api.github.com/users/mattheu/repos","events_url":"https://api.github.com/users/mattheu/events{/privacy}","received_events_url":"https://api.github.com/users/mattheu/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":8,"state":"open","created_at":"2015-10-12T19:21:33Z","updated_at":"2016-03-02T15:37:08Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-03-02T13:17:37Z","updated_at":"2016-03-03T11:18:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wp-shortcake/shortcake/pulls/583","html_url":"https://github.com/wp-shortcake/shortcake/pull/583","diff_url":"https://github.com/wp-shortcake/shortcake/pull/583.diff","patch_url":"https://github.com/wp-shortcake/shortcake/pull/583.patch"},"body":"How about using the rest API infrastructure in core for previews? \r\n\r\n- I don't particularly think it has any real advantages? The way it handles sanitization of args is nice though.\r\n- doing a POST request to `get preview` does feel a bit odd. Any issues using GET instead?\r\n\r\nAlso deleted the legacy 'fetch' code which is no longer used - including tests. Becomes apparent that we don't have tests for the fetcher which we probably should - but this can be handled separately."},"comment":{"url":"https://api.github.com/repos/wp-shortcake/shortcake/issues/comments/191713116","html_url":"https://github.com/wp-shortcake/shortcake/pull/583#issuecomment-191713116","issue_url":"https://api.github.com/repos/wp-shortcake/shortcake/issues/583","id":191713116,"user":{"login":"mattheu","id":494927,"avatar_url":"https://avatars.githubusercontent.com/u/494927?v=3","gravatar_id":"","url":"https://api.github.com/users/mattheu","html_url":"https://github.com/mattheu","followers_url":"https://api.github.com/users/mattheu/followers","following_url":"https://api.github.com/users/mattheu/following{/other_user}","gists_url":"https://api.github.com/users/mattheu/gists{/gist_id}","starred_url":"https://api.github.com/users/mattheu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattheu/subscriptions","organizations_url":"https://api.github.com/users/mattheu/orgs","repos_url":"https://api.github.com/users/mattheu/repos","events_url":"https://api.github.com/users/mattheu/events{/privacy}","received_events_url":"https://api.github.com/users/mattheu/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T11:18:52Z","updated_at":"2016-03-03T11:18:52Z","body":"TODO - add some tests."}}