{"action":"created","comment":{"url":"https://api.github.com/repos/salemove/apiary_docs/pulls/comments/57732763","id":57732763,"diff_hunk":"@@ -1509,6 +1509,77 @@ To disable an operator you must provide the operator's ID.\n \n # Group Sites\n \n+## Sites [/sites{?hostname}]\n+\n+### List sites [GET]\n+\n+Lists all the sites that correspond to a specific hostname and to which the manager has access.\n+The collection is paginated.\n+\n++ Request\n+\n+    + Headers\n+\n+            Authorization: Token 2pFuPlTYkH7T4MylrwxApA\n+            Accept: application/vnd.salemove.v1+json\n+\n++ Parameters\n+    + hostname (required, string, `salemove.com`) ... The hostname to which the sites are connected.\n+    + page (optional, number, `1`) ... The requested page if pagination is used.\n+    + per_page (optional, number, `30`) ... The maximum number of sites that should be returned with the request.\n+\n++ Response 200 (application/json)\n+\n+          {\n+            \"last_page\": \"https://api.salemove.com/sites?hostname=salemove.com&page=2\",\n+            \"next_page\": \"https://api.salemove.com/sites?hostname=salemove.com&page=2\",\n+            \"sites\": [\n+              {\n+                \"id\": 1,\n+                \"href\": \"https://api.salemove.com/sites/1\"\n+              },\n+              {\n+                \"id\": 2,\n+                \"href\": \"https://api.salemove.com/sites/2\"\n+              }\n+            ]\n+          }\n+\n+### Create a new site [POST]\n+\n+The manager can create a new site with default settings in SaleMove platform. After that site is created, the SAML should be created so operators can use the site. The site needs to include SaleMove scripts on its pages for this feature to work.","path":"apiary.apib","position":42,"original_position":42,"commit_id":"8169741d9e64d15b144102537bd40e2d0b38ccf9","original_commit_id":"8169741d9e64d15b144102537bd40e2d0b38ccf9","user":{"login":"ostap0207","id":2852092,"avatar_url":"https://avatars.githubusercontent.com/u/2852092?v=3","gravatar_id":"","url":"https://api.github.com/users/ostap0207","html_url":"https://github.com/ostap0207","followers_url":"https://api.github.com/users/ostap0207/followers","following_url":"https://api.github.com/users/ostap0207/following{/other_user}","gists_url":"https://api.github.com/users/ostap0207/gists{/gist_id}","starred_url":"https://api.github.com/users/ostap0207/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostap0207/subscriptions","organizations_url":"https://api.github.com/users/ostap0207/orgs","repos_url":"https://api.github.com/users/ostap0207/repos","events_url":"https://api.github.com/users/ostap0207/events{/privacy}","received_events_url":"https://api.github.com/users/ostap0207/received_events","type":"User","site_admin":false},"body":"![screen shot 2016-03-29 at 17 25 59](https://cloud.githubusercontent.com/assets/2852092/14111548/d2bb0fac-f5d3-11e5-99e1-5c32cfe02454.png)\r\nActually rendered OK, but can break for readability.","created_at":"2016-03-29T14:30:13Z","updated_at":"2016-03-29T14:30:13Z","html_url":"https://github.com/salemove/apiary_docs/pull/24#discussion_r57732763","pull_request_url":"https://api.github.com/repos/salemove/apiary_docs/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/salemove/apiary_docs/pulls/comments/57732763"},"html":{"href":"https://github.com/salemove/apiary_docs/pull/24#discussion_r57732763"},"pull_request":{"href":"https://api.github.com/repos/salemove/apiary_docs/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/salemove/apiary_docs/pulls/24","id":64443284,"html_url":"https://github.com/salemove/apiary_docs/pull/24","diff_url":"https://github.com/salemove/apiary_docs/pull/24.diff","patch_url":"https://github.com/salemove/apiary_docs/pull/24.patch","issue_url":"https://api.github.com/repos/salemove/apiary_docs/issues/24","number":24,"state":"open","locked":false,"title":"Add get sites endpoint documentation","user":{"login":"ostap0207","id":2852092,"avatar_url":"https://avatars.githubusercontent.com/u/2852092?v=3","gravatar_id":"","url":"https://api.github.com/users/ostap0207","html_url":"https://github.com/ostap0207","followers_url":"https://api.github.com/users/ostap0207/followers","following_url":"https://api.github.com/users/ostap0207/following{/other_user}","gists_url":"https://api.github.com/users/ostap0207/gists{/gist_id}","starred_url":"https://api.github.com/users/ostap0207/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostap0207/subscriptions","organizations_url":"https://api.github.com/users/ostap0207/orgs","repos_url":"https://api.github.com/users/ostap0207/repos","events_url":"https://api.github.com/users/ostap0207/events{/privacy}","received_events_url":"https://api.github.com/users/ostap0207/received_events","type":"User","site_admin":false},"body":"CLINT-27","created_at":"2016-03-29T10:22:10Z","updated_at":"2016-03-29T14:30:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"245b4ee6d9d868d09812dbf21c867477e29e84ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/salemove/apiary_docs/pulls/24/commits","review_comments_url":"https://api.github.com/repos/salemove/apiary_docs/pulls/24/comments","review_comment_url":"https://api.github.com/repos/salemove/apiary_docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/salemove/apiary_docs/issues/24/comments","statuses_url":"https://api.github.com/repos/salemove/apiary_docs/statuses/8169741d9e64d15b144102537bd40e2d0b38ccf9","head":{"label":"salemove:CLINT-27_add_doc","ref":"CLINT-27_add_doc","sha":"8169741d9e64d15b144102537bd40e2d0b38ccf9","user":{"login":"salemove","id":5281619,"avatar_url":"https://avatars.githubusercontent.com/u/5281619?v=3","gravatar_id":"","url":"https://api.github.com/users/salemove","html_url":"https://github.com/salemove","followers_url":"https://api.github.com/users/salemove/followers","following_url":"https://api.github.com/users/salemove/following{/other_user}","gists_url":"https://api.github.com/users/salemove/gists{/gist_id}","starred_url":"https://api.github.com/users/salemove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salemove/subscriptions","organizations_url":"https://api.github.com/users/salemove/orgs","repos_url":"https://api.github.com/users/salemove/repos","events_url":"https://api.github.com/users/salemove/events{/privacy}","received_events_url":"https://api.github.com/users/salemove/received_events","type":"Organization","site_admin":false},"repo":{"id":43673810,"name":"apiary_docs","full_name":"salemove/apiary_docs","owner":{"login":"salemove","id":5281619,"avatar_url":"https://avatars.githubusercontent.com/u/5281619?v=3","gravatar_id":"","url":"https://api.github.com/users/salemove","html_url":"https://github.com/salemove","followers_url":"https://api.github.com/users/salemove/followers","following_url":"https://api.github.com/users/salemove/following{/other_user}","gists_url":"https://api.github.com/users/salemove/gists{/gist_id}","starred_url":"https://api.github.com/users/salemove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salemove/subscriptions","organizations_url":"https://api.github.com/users/salemove/orgs","repos_url":"https://api.github.com/users/salemove/repos","events_url":"https://api.github.com/users/salemove/events{/privacy}","received_events_url":"https://api.github.com/users/salemove/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/salemove/apiary_docs","description":"","fork":false,"url":"https://api.github.com/repos/salemove/apiary_docs","forks_url":"https://api.github.com/repos/salemove/apiary_docs/forks","keys_url":"https://api.github.com/repos/salemove/apiary_docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/salemove/apiary_docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/salemove/apiary_docs/teams","hooks_url":"https://api.github.com/repos/salemove/apiary_docs/hooks","issue_events_url":"https://api.github.com/repos/salemove/apiary_docs/issues/events{/number}","events_url":"https://api.github.com/repos/salemove/apiary_docs/events","assignees_url":"https://api.github.com/repos/salemove/apiary_docs/assignees{/user}","branches_url":"https://api.github.com/repos/salemove/apiary_docs/branches{/branch}","tags_url":"https://api.github.com/repos/salemove/apiary_docs/tags","blobs_url":"https://api.github.com/repos/salemove/apiary_docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/salemove/apiary_docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/salemove/apiary_docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/salemove/apiary_docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/salemove/apiary_docs/statuses/{sha}","languages_url":"https://api.github.com/repos/salemove/apiary_docs/languages","stargazers_url":"https://api.github.com/repos/salemove/apiary_docs/stargazers","contributors_url":"https://api.github.com/repos/salemove/apiary_docs/contributors","subscribers_url":"https://api.github.com/repos/salemove/apiary_docs/subscribers","subscription_url":"https://api.github.com/repos/salemove/apiary_docs/subscription","commits_url":"https://api.github.com/repos/salemove/apiary_docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/salemove/apiary_docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/salemove/apiary_docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/salemove/apiary_docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/salemove/apiary_docs/contents/{+path}","compare_url":"https://api.github.com/repos/salemove/apiary_docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/salemove/apiary_docs/merges","archive_url":"https://api.github.com/repos/salemove/apiary_docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/salemove/apiary_docs/downloads","issues_url":"https://api.github.com/repos/salemove/apiary_docs/issues{/number}","pulls_url":"https://api.github.com/repos/salemove/apiary_docs/pulls{/number}","milestones_url":"https://api.github.com/repos/salemove/apiary_docs/milestones{/number}","notifications_url":"https://api.github.com/repos/salemove/apiary_docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/salemove/apiary_docs/labels{/name}","releases_url":"https://api.github.com/repos/salemove/apiary_docs/releases{/id}","deployments_url":"https://api.github.com/repos/salemove/apiary_docs/deployments","created_at":"2015-10-05T08:49:04Z","updated_at":"2016-01-11T08:38:17Z","pushed_at":"2016-03-29T10:22:10Z","git_url":"git://github.com/salemove/apiary_docs.git","ssh_url":"git@github.com:salemove/apiary_docs.git","clone_url":"https://github.com/salemove/apiary_docs.git","svn_url":"https://github.com/salemove/apiary_docs","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"API Blueprint","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"salemove:master","ref":"master","sha":"b072479151d78c6f7f54d24cfc5f12771002e910","user":{"login":"salemove","id":5281619,"avatar_url":"https://avatars.githubusercontent.com/u/5281619?v=3","gravatar_id":"","url":"https://api.github.com/users/salemove","html_url":"https://github.com/salemove","followers_url":"https://api.github.com/users/salemove/followers","following_url":"https://api.github.com/users/salemove/following{/other_user}","gists_url":"https://api.github.com/users/salemove/gists{/gist_id}","starred_url":"https://api.github.com/users/salemove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salemove/subscriptions","organizations_url":"https://api.github.com/users/salemove/orgs","repos_url":"https://api.github.com/users/salemove/repos","events_url":"https://api.github.com/users/salemove/events{/privacy}","received_events_url":"https://api.github.com/users/salemove/received_events","type":"Organization","site_admin":false},"repo":{"id":43673810,"name":"apiary_docs","full_name":"salemove/apiary_docs","owner":{"login":"salemove","id":5281619,"avatar_url":"https://avatars.githubusercontent.com/u/5281619?v=3","gravatar_id":"","url":"https://api.github.com/users/salemove","html_url":"https://github.com/salemove","followers_url":"https://api.github.com/users/salemove/followers","following_url":"https://api.github.com/users/salemove/following{/other_user}","gists_url":"https://api.github.com/users/salemove/gists{/gist_id}","starred_url":"https://api.github.com/users/salemove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salemove/subscriptions","organizations_url":"https://api.github.com/users/salemove/orgs","repos_url":"https://api.github.com/users/salemove/repos","events_url":"https://api.github.com/users/salemove/events{/privacy}","received_events_url":"https://api.github.com/users/salemove/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/salemove/apiary_docs","description":"","fork":false,"url":"https://api.github.com/repos/salemove/apiary_docs","forks_url":"https://api.github.com/repos/salemove/apiary_docs/forks","keys_url":"https://api.github.com/repos/salemove/apiary_docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/salemove/apiary_docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/salemove/apiary_docs/teams","hooks_url":"https://api.github.com/repos/salemove/apiary_docs/hooks","issue_events_url":"https://api.github.com/repos/salemove/apiary_docs/issues/events{/number}","events_url":"https://api.github.com/repos/salemove/apiary_docs/events","assignees_url":"https://api.github.com/repos/salemove/apiary_docs/assignees{/user}","branches_url":"https://api.github.com/repos/salemove/apiary_docs/branches{/branch}","tags_url":"https://api.github.com/repos/salemove/apiary_docs/tags","blobs_url":"https://api.github.com/repos/salemove/apiary_docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/salemove/apiary_docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/salemove/apiary_docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/salemove/apiary_docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/salemove/apiary_docs/statuses/{sha}","languages_url":"https://api.github.com/repos/salemove/apiary_docs/languages","stargazers_url":"https://api.github.com/repos/salemove/apiary_docs/stargazers","contributors_url":"https://api.github.com/repos/salemove/apiary_docs/contributors","subscribers_url":"https://api.github.com/repos/salemove/apiary_docs/subscribers","subscription_url":"https://api.github.com/repos/salemove/apiary_docs/subscription","commits_url":"https://api.github.com/repos/salemove/apiary_docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/salemove/apiary_docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/salemove/apiary_docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/salemove/apiary_docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/salemove/apiary_docs/contents/{+path}","compare_url":"https://api.github.com/repos/salemove/apiary_docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/salemove/apiary_docs/merges","archive_url":"https://api.github.com/repos/salemove/apiary_docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/salemove/apiary_docs/downloads","issues_url":"https://api.github.com/repos/salemove/apiary_docs/issues{/number}","pulls_url":"https://api.github.com/repos/salemove/apiary_docs/pulls{/number}","milestones_url":"https://api.github.com/repos/salemove/apiary_docs/milestones{/number}","notifications_url":"https://api.github.com/repos/salemove/apiary_docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/salemove/apiary_docs/labels{/name}","releases_url":"https://api.github.com/repos/salemove/apiary_docs/releases{/id}","deployments_url":"https://api.github.com/repos/salemove/apiary_docs/deployments","created_at":"2015-10-05T08:49:04Z","updated_at":"2016-01-11T08:38:17Z","pushed_at":"2016-03-29T10:22:10Z","git_url":"git://github.com/salemove/apiary_docs.git","ssh_url":"git@github.com:salemove/apiary_docs.git","clone_url":"https://github.com/salemove/apiary_docs.git","svn_url":"https://github.com/salemove/apiary_docs","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"API Blueprint","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/salemove/apiary_docs/pulls/24"},"html":{"href":"https://github.com/salemove/apiary_docs/pull/24"},"issue":{"href":"https://api.github.com/repos/salemove/apiary_docs/issues/24"},"comments":{"href":"https://api.github.com/repos/salemove/apiary_docs/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/salemove/apiary_docs/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/salemove/apiary_docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/salemove/apiary_docs/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/salemove/apiary_docs/statuses/8169741d9e64d15b144102537bd40e2d0b38ccf9"}}}}