{"action":"created","comment":{"url":"https://api.github.com/repos/docker/swarm/pulls/comments/47727356","id":47727356,"diff_hunk":"@@ -1,29 +1,9 @@\n #discovery.hub.docker.com\n \n-Docker Swarm comes with a simple discovery service built into the [Docker Hub](http://hub.docker.com)\n-\n-#####Create a new cluster\n-`-> POST https://discovery.hub.docker.com/v1/clusters`\n-\n-`<- <token>`\n-\n-#####Add new nodes to a cluster\n-`-> POST https://discovery.hub.docker.com/v1/clusters/<token>?ttl=<ttl> Request body: \"<ip>:<port1>\"`\n-\n-`<- OK`\n-\n-`-> POST https://discovery.hub.docker.com/v1/clusters/<token>?ttl=<ttl> Request body: \"<ip>:<port2>\")`\n-\n-`<- OK`\n-\n-\n-#####List nodes in a cluster\n-`-> GET https://discovery.hub.docker.com/v1/clusters/<token>`\n-\n-`<- [\"<ip>:<port1>\", \"<ip>:<port2>\"]`\n-\n-\n-#####Delete a cluster (all the nodes in a cluster)\n-`-> DELETE https://discovery.hub.docker.com/v1/clusters/<token>`\n-\n-`<- OK`\n+Docker Swarm comes with a simple discovery service built into the [Docker\n+Hub](http://hub.docker.com).  To read the end-user API documentation, visit [the\n+Swarm API documentation on\n+docs.docker.com](https://docs.docker.com/swarm/api/swarm-api/). If you want to\n+modify the discovery API documentation, start with [the `docs/api/swarm-api.md`","path":"discovery/token/README.md","position":34,"original_position":34,"commit_id":"32b490d6f2c771c04f57118e38b92327cf8a974c","original_commit_id":"32b490d6f2c771c04f57118e38b92327cf8a974c","user":{"login":"dongluochen","id":14985073,"avatar_url":"https://avatars.githubusercontent.com/u/14985073?v=3","gravatar_id":"","url":"https://api.github.com/users/dongluochen","html_url":"https://github.com/dongluochen","followers_url":"https://api.github.com/users/dongluochen/followers","following_url":"https://api.github.com/users/dongluochen/following{/other_user}","gists_url":"https://api.github.com/users/dongluochen/gists{/gist_id}","starred_url":"https://api.github.com/users/dongluochen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongluochen/subscriptions","organizations_url":"https://api.github.com/users/dongluochen/orgs","repos_url":"https://api.github.com/users/dongluochen/repos","events_url":"https://api.github.com/users/dongluochen/events{/privacy}","received_events_url":"https://api.github.com/users/dongluochen/received_events","type":"User","site_admin":false},"body":"discovery/token/README.md is covered by docs/discovery.md","created_at":"2015-12-16T01:45:33Z","updated_at":"2015-12-16T01:45:33Z","html_url":"https://github.com/docker/swarm/pull/1546#discussion_r47727356","pull_request_url":"https://api.github.com/repos/docker/swarm/pulls/1546","_links":{"self":{"href":"https://api.github.com/repos/docker/swarm/pulls/comments/47727356"},"html":{"href":"https://github.com/docker/swarm/pull/1546#discussion_r47727356"},"pull_request":{"href":"https://api.github.com/repos/docker/swarm/pulls/1546"}}},"pull_request":{"url":"https://api.github.com/repos/docker/swarm/pulls/1546","id":53785855,"html_url":"https://github.com/docker/swarm/pull/1546","diff_url":"https://github.com/docker/swarm/pull/1546.diff","patch_url":"https://github.com/docker/swarm/pull/1546.patch","issue_url":"https://api.github.com/repos/docker/swarm/issues/1546","number":1546,"state":"open","locked":false,"title":"Remove readmes and point to docs","user":{"login":"moxiegirl","id":1347209,"avatar_url":"https://avatars.githubusercontent.com/u/1347209?v=3","gravatar_id":"","url":"https://api.github.com/users/moxiegirl","html_url":"https://github.com/moxiegirl","followers_url":"https://api.github.com/users/moxiegirl/followers","following_url":"https://api.github.com/users/moxiegirl/following{/other_user}","gists_url":"https://api.github.com/users/moxiegirl/gists{/gist_id}","starred_url":"https://api.github.com/users/moxiegirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxiegirl/subscriptions","organizations_url":"https://api.github.com/users/moxiegirl/orgs","repos_url":"https://api.github.com/users/moxiegirl/repos","events_url":"https://api.github.com/users/moxiegirl/events{/privacy}","received_events_url":"https://api.github.com/users/moxiegirl/received_events","type":"User","site_admin":false},"body":"First part of a two part process.  \r\nRemove the readmes and point to docs.docker.com.\r\nAnything that is about contributing, I'll leave in the readme.\r\n\r\nSigned-off-by: Mary Anthony <mary@docker.com>","created_at":"2015-12-16T01:00:27Z","updated_at":"2015-12-16T01:45:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"012f72868fdabd4b83b83ab0e6da0af0adaae198","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/swarm/pulls/1546/commits","review_comments_url":"https://api.github.com/repos/docker/swarm/pulls/1546/comments","review_comment_url":"https://api.github.com/repos/docker/swarm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/swarm/issues/1546/comments","statuses_url":"https://api.github.com/repos/docker/swarm/statuses/32b490d6f2c771c04f57118e38b92327cf8a974c","head":{"label":"moxiegirl:readme-refs-work","ref":"readme-refs-work","sha":"32b490d6f2c771c04f57118e38b92327cf8a974c","user":{"login":"moxiegirl","id":1347209,"avatar_url":"https://avatars.githubusercontent.com/u/1347209?v=3","gravatar_id":"","url":"https://api.github.com/users/moxiegirl","html_url":"https://github.com/moxiegirl","followers_url":"https://api.github.com/users/moxiegirl/followers","following_url":"https://api.github.com/users/moxiegirl/following{/other_user}","gists_url":"https://api.github.com/users/moxiegirl/gists{/gist_id}","starred_url":"https://api.github.com/users/moxiegirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxiegirl/subscriptions","organizations_url":"https://api.github.com/users/moxiegirl/orgs","repos_url":"https://api.github.com/users/moxiegirl/repos","events_url":"https://api.github.com/users/moxiegirl/events{/privacy}","received_events_url":"https://api.github.com/users/moxiegirl/received_events","type":"User","site_admin":false},"repo":{"id":34550284,"name":"swarm","full_name":"moxiegirl/swarm","owner":{"login":"moxiegirl","id":1347209,"avatar_url":"https://avatars.githubusercontent.com/u/1347209?v=3","gravatar_id":"","url":"https://api.github.com/users/moxiegirl","html_url":"https://github.com/moxiegirl","followers_url":"https://api.github.com/users/moxiegirl/followers","following_url":"https://api.github.com/users/moxiegirl/following{/other_user}","gists_url":"https://api.github.com/users/moxiegirl/gists{/gist_id}","starred_url":"https://api.github.com/users/moxiegirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxiegirl/subscriptions","organizations_url":"https://api.github.com/users/moxiegirl/orgs","repos_url":"https://api.github.com/users/moxiegirl/repos","events_url":"https://api.github.com/users/moxiegirl/events{/privacy}","received_events_url":"https://api.github.com/users/moxiegirl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moxiegirl/swarm","description":"Swarm: a Docker-native clustering system","fork":true,"url":"https://api.github.com/repos/moxiegirl/swarm","forks_url":"https://api.github.com/repos/moxiegirl/swarm/forks","keys_url":"https://api.github.com/repos/moxiegirl/swarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moxiegirl/swarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moxiegirl/swarm/teams","hooks_url":"https://api.github.com/repos/moxiegirl/swarm/hooks","issue_events_url":"https://api.github.com/repos/moxiegirl/swarm/issues/events{/number}","events_url":"https://api.github.com/repos/moxiegirl/swarm/events","assignees_url":"https://api.github.com/repos/moxiegirl/swarm/assignees{/user}","branches_url":"https://api.github.com/repos/moxiegirl/swarm/branches{/branch}","tags_url":"https://api.github.com/repos/moxiegirl/swarm/tags","blobs_url":"https://api.github.com/repos/moxiegirl/swarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moxiegirl/swarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moxiegirl/swarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/moxiegirl/swarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moxiegirl/swarm/statuses/{sha}","languages_url":"https://api.github.com/repos/moxiegirl/swarm/languages","stargazers_url":"https://api.github.com/repos/moxiegirl/swarm/stargazers","contributors_url":"https://api.github.com/repos/moxiegirl/swarm/contributors","subscribers_url":"https://api.github.com/repos/moxiegirl/swarm/subscribers","subscription_url":"https://api.github.com/repos/moxiegirl/swarm/subscription","commits_url":"https://api.github.com/repos/moxiegirl/swarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/moxiegirl/swarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/moxiegirl/swarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/moxiegirl/swarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/moxiegirl/swarm/contents/{+path}","compare_url":"https://api.github.com/repos/moxiegirl/swarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moxiegirl/swarm/merges","archive_url":"https://api.github.com/repos/moxiegirl/swarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moxiegirl/swarm/downloads","issues_url":"https://api.github.com/repos/moxiegirl/swarm/issues{/number}","pulls_url":"https://api.github.com/repos/moxiegirl/swarm/pulls{/number}","milestones_url":"https://api.github.com/repos/moxiegirl/swarm/milestones{/number}","notifications_url":"https://api.github.com/repos/moxiegirl/swarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moxiegirl/swarm/labels{/name}","releases_url":"https://api.github.com/repos/moxiegirl/swarm/releases{/id}","created_at":"2015-04-25T01:32:52Z","updated_at":"2015-04-25T01:32:52Z","pushed_at":"2015-12-16T01:17:35Z","git_url":"git://github.com/moxiegirl/swarm.git","ssh_url":"git@github.com:moxiegirl/swarm.git","clone_url":"https://github.com/moxiegirl/swarm.git","svn_url":"https://github.com/moxiegirl/swarm","homepage":"","size":7088,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"docker:master","ref":"master","sha":"7291ec144c84ffc4c894a29801d32b20ad4a2169","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":19360616,"name":"swarm","full_name":"docker/swarm","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/swarm","description":"Swarm: a Docker-native clustering system","fork":false,"url":"https://api.github.com/repos/docker/swarm","forks_url":"https://api.github.com/repos/docker/swarm/forks","keys_url":"https://api.github.com/repos/docker/swarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/swarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/swarm/teams","hooks_url":"https://api.github.com/repos/docker/swarm/hooks","issue_events_url":"https://api.github.com/repos/docker/swarm/issues/events{/number}","events_url":"https://api.github.com/repos/docker/swarm/events","assignees_url":"https://api.github.com/repos/docker/swarm/assignees{/user}","branches_url":"https://api.github.com/repos/docker/swarm/branches{/branch}","tags_url":"https://api.github.com/repos/docker/swarm/tags","blobs_url":"https://api.github.com/repos/docker/swarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/swarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/swarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/swarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/swarm/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/swarm/languages","stargazers_url":"https://api.github.com/repos/docker/swarm/stargazers","contributors_url":"https://api.github.com/repos/docker/swarm/contributors","subscribers_url":"https://api.github.com/repos/docker/swarm/subscribers","subscription_url":"https://api.github.com/repos/docker/swarm/subscription","commits_url":"https://api.github.com/repos/docker/swarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/swarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/swarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/swarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/swarm/contents/{+path}","compare_url":"https://api.github.com/repos/docker/swarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/swarm/merges","archive_url":"https://api.github.com/repos/docker/swarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/swarm/downloads","issues_url":"https://api.github.com/repos/docker/swarm/issues{/number}","pulls_url":"https://api.github.com/repos/docker/swarm/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/swarm/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/swarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/swarm/labels{/name}","releases_url":"https://api.github.com/repos/docker/swarm/releases{/id}","created_at":"2014-05-01T23:15:17Z","updated_at":"2015-12-15T19:06:30Z","pushed_at":"2015-12-16T01:38:49Z","git_url":"git://github.com/docker/swarm.git","ssh_url":"git@github.com:docker/swarm.git","clone_url":"https://github.com/docker/swarm.git","svn_url":"https://github.com/docker/swarm","homepage":"","size":44679,"stargazers_count":3275,"watchers_count":3275,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":522,"mirror_url":null,"open_issues_count":174,"forks":522,"open_issues":174,"watchers":3275,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/swarm/pulls/1546"},"html":{"href":"https://github.com/docker/swarm/pull/1546"},"issue":{"href":"https://api.github.com/repos/docker/swarm/issues/1546"},"comments":{"href":"https://api.github.com/repos/docker/swarm/issues/1546/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/swarm/pulls/1546/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/swarm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/swarm/pulls/1546/commits"},"statuses":{"href":"https://api.github.com/repos/docker/swarm/statuses/32b490d6f2c771c04f57118e38b92327cf8a974c"}}}}