{"action":"created","issue":{"url":"https://api.github.com/repos/afragen/github-updater/issues/366","repository_url":"https://api.github.com/repos/afragen/github-updater","labels_url":"https://api.github.com/repos/afragen/github-updater/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/afragen/github-updater/issues/366/comments","events_url":"https://api.github.com/repos/afragen/github-updater/issues/366/events","html_url":"https://github.com/afragen/github-updater/pull/366","id":136070728,"number":366,"title":"Rest api","user":{"login":"limikael","id":902911,"avatar_url":"https://avatars.githubusercontent.com/u/902911?v=3","gravatar_id":"","url":"https://api.github.com/users/limikael","html_url":"https://github.com/limikael","followers_url":"https://api.github.com/users/limikael/followers","following_url":"https://api.github.com/users/limikael/following{/other_user}","gists_url":"https://api.github.com/users/limikael/gists{/gist_id}","starred_url":"https://api.github.com/users/limikael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limikael/subscriptions","organizations_url":"https://api.github.com/users/limikael/orgs","repos_url":"https://api.github.com/users/limikael/repos","events_url":"https://api.github.com/users/limikael/events{/privacy}","received_events_url":"https://api.github.com/users/limikael/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-24T14:05:50Z","updated_at":"2016-03-23T14:37:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/afragen/github-updater/pulls/366","html_url":"https://github.com/afragen/github-updater/pull/366","diff_url":"https://github.com/afragen/github-updater/pull/366.diff","patch_url":"https://github.com/afragen/github-updater/pull/366.patch"},"body":"Pull request for the functionality discussed here: https://github.com/afragen/github-updater/issues/354\r\n\r\nShort summary:\r\n\r\nThis PR makes it possible to access a URL in a RESTful way, and as a result update a single theme or plugin. The status of the update will come back as a JSON object. The URL to access is shown on the settings page, under the \"Remote Management\" tab. The parameters accepted by the URL:\r\n\r\n* `key` - The key as displayed on the \"Remote Management\". Must match the key stored on the\r\n  system.\r\n* `plugin` - Specify this to update a particular plugin. Should be specified as only the name of the\r\n  plugin as it is known to the system, not the remote repo.\r\n* `theme` - Specify this to update a theme.\r\n* `tag` - Specify a particular tag, branch or commit for the update. If nothing is specified, it defaults to\r\n  \"master\".\r\n* `committish` - This is an alias for the tag parameter. I think that referring to a \"committish\" is more\r\n  correct in in terms of git terminology, but it sounds a bit funny so this is why I decided to treat the\r\n  committish and tag parameters as aliases for each other."},"comment":{"url":"https://api.github.com/repos/afragen/github-updater/issues/comments/200372607","html_url":"https://github.com/afragen/github-updater/pull/366#issuecomment-200372607","issue_url":"https://api.github.com/repos/afragen/github-updater/issues/366","id":200372607,"user":{"login":"afragen","id":1296790,"avatar_url":"https://avatars.githubusercontent.com/u/1296790?v=3","gravatar_id":"","url":"https://api.github.com/users/afragen","html_url":"https://github.com/afragen","followers_url":"https://api.github.com/users/afragen/followers","following_url":"https://api.github.com/users/afragen/following{/other_user}","gists_url":"https://api.github.com/users/afragen/gists{/gist_id}","starred_url":"https://api.github.com/users/afragen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afragen/subscriptions","organizations_url":"https://api.github.com/users/afragen/orgs","repos_url":"https://api.github.com/users/afragen/repos","events_url":"https://api.github.com/users/afragen/events{/privacy}","received_events_url":"https://api.github.com/users/afragen/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T14:37:48Z","updated_at":"2016-03-23T14:37:48Z","body":"I'm going to merge this and you'll have to take me through how to test it later :wink:\r\n\r\nI will need to change a number of things to conform to WP Coding Guidelines and this project's \"guidelines\", but I'll do that at the end. Most of this involves renaming the classes and spacing."}}