{"action":"created","comment":{"url":"https://api.github.com/repos/cozy/cozy-stack/pulls/comments/87391079","pull_request_review_id":8004662,"id":87391079,"diff_hunk":"@@ -0,0 +1,108 @@\n+# Mango\n+\n+# Create an index for some documents\n+\n+The body should contains a `index` JSON field containing a `fields` which is an ordered array of fields to index.\n+\n+#### Request\n+```http\n+POST /data/:doctype/_index\n+```\n+```http\n+POST /data/io.cozy.events/_index\n+Content-Type: application/json\n+```\n+```json\n+{\n+  \"index\": {\n+    \"fields\": [\"calendar\", \"date\"]\n+  }\n+}\n+```\n+\n+#### Response OK\n+```http\n+HTTP/1.1 200 OK\n+Date: Mon, 27 Sept 2016 12:28:53 GMT\n+Content-Length: ...\n+Content-Type: application/json\n+```\n+```json\n+{\n+    \"result\": \"created\",\n+    \"id\": \"_design/a5f4711fc9448864a13c81dc71e660b524d7410c\",\n+    \"name\": \"a5f4711fc9448864a13c81dc71e660b524d7410c\"\n+}\n+```\n+### Details\n+- if the doctype does not exists, the database is created.","path":"docs/mango.md","position":38,"original_position":38,"commit_id":"0f0c01ce234c7fe53c1f546e880bc7c865289344","original_commit_id":"0f0c01ce234c7fe53c1f546e880bc7c865289344","user":{"login":"jinroh","id":687847,"avatar_url":"https://avatars.githubusercontent.com/u/687847?v=3","gravatar_id":"","url":"https://api.github.com/users/jinroh","html_url":"https://github.com/jinroh","followers_url":"https://api.github.com/users/jinroh/followers","following_url":"https://api.github.com/users/jinroh/following{/other_user}","gists_url":"https://api.github.com/users/jinroh/gists{/gist_id}","starred_url":"https://api.github.com/users/jinroh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinroh/subscriptions","organizations_url":"https://api.github.com/users/jinroh/orgs","repos_url":"https://api.github.com/users/jinroh/repos","events_url":"https://api.github.com/users/jinroh/events{/privacy}","received_events_url":"https://api.github.com/users/jinroh/received_events","type":"User","site_admin":false},"body":"exist*","created_at":"2016-11-10T13:14:09Z","updated_at":"2016-11-10T13:14:09Z","html_url":"https://github.com/cozy/cozy-stack/pull/94#discussion_r87391079","pull_request_url":"https://api.github.com/repos/cozy/cozy-stack/pulls/94","_links":{"self":{"href":"https://api.github.com/repos/cozy/cozy-stack/pulls/comments/87391079"},"html":{"href":"https://github.com/cozy/cozy-stack/pull/94#discussion_r87391079"},"pull_request":{"href":"https://api.github.com/repos/cozy/cozy-stack/pulls/94"}}},"pull_request":{"url":"https://api.github.com/repos/cozy/cozy-stack/pulls/94","id":93146274,"html_url":"https://github.com/cozy/cozy-stack/pull/94","diff_url":"https://github.com/cozy/cozy-stack/pull/94.diff","patch_url":"https://github.com/cozy/cozy-stack/pull/94.patch","issue_url":"https://api.github.com/repos/cozy/cozy-stack/issues/94","number":94,"state":"open","locked":false,"title":"Add HTTP index creation & query","user":{"login":"aenario","id":1580287,"avatar_url":"https://avatars.githubusercontent.com/u/1580287?v=3","gravatar_id":"","url":"https://api.github.com/users/aenario","html_url":"https://github.com/aenario","followers_url":"https://api.github.com/users/aenario/followers","following_url":"https://api.github.com/users/aenario/following{/other_user}","gists_url":"https://api.github.com/users/aenario/gists{/gist_id}","starred_url":"https://api.github.com/users/aenario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aenario/subscriptions","organizations_url":"https://api.github.com/users/aenario/orgs","repos_url":"https://api.github.com/users/aenario/repos","events_url":"https://api.github.com/users/aenario/events{/privacy}","received_events_url":"https://api.github.com/users/aenario/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-10T13:01:42Z","updated_at":"2016-11-10T13:15:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e416a335d9c80578971ebff20bff53c353ab2c3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cozy/cozy-stack/pulls/94/commits","review_comments_url":"https://api.github.com/repos/cozy/cozy-stack/pulls/94/comments","review_comment_url":"https://api.github.com/repos/cozy/cozy-stack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cozy/cozy-stack/issues/94/comments","statuses_url":"https://api.github.com/repos/cozy/cozy-stack/statuses/0f0c01ce234c7fe53c1f546e880bc7c865289344","head":{"label":"aenario:unicontexts-and-queries","ref":"unicontexts-and-queries","sha":"0f0c01ce234c7fe53c1f546e880bc7c865289344","user":{"login":"aenario","id":1580287,"avatar_url":"https://avatars.githubusercontent.com/u/1580287?v=3","gravatar_id":"","url":"https://api.github.com/users/aenario","html_url":"https://github.com/aenario","followers_url":"https://api.github.com/users/aenario/followers","following_url":"https://api.github.com/users/aenario/following{/other_user}","gists_url":"https://api.github.com/users/aenario/gists{/gist_id}","starred_url":"https://api.github.com/users/aenario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aenario/subscriptions","organizations_url":"https://api.github.com/users/aenario/orgs","repos_url":"https://api.github.com/users/aenario/repos","events_url":"https://api.github.com/users/aenario/events{/privacy}","received_events_url":"https://api.github.com/users/aenario/received_events","type":"User","site_admin":false},"repo":{"id":69953322,"name":"cozy-stack","full_name":"aenario/cozy-stack","owner":{"login":"aenario","id":1580287,"avatar_url":"https://avatars.githubusercontent.com/u/1580287?v=3","gravatar_id":"","url":"https://api.github.com/users/aenario","html_url":"https://github.com/aenario","followers_url":"https://api.github.com/users/aenario/followers","following_url":"https://api.github.com/users/aenario/following{/other_user}","gists_url":"https://api.github.com/users/aenario/gists{/gist_id}","starred_url":"https://api.github.com/users/aenario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aenario/subscriptions","organizations_url":"https://api.github.com/users/aenario/orgs","repos_url":"https://api.github.com/users/aenario/repos","events_url":"https://api.github.com/users/aenario/events{/privacy}","received_events_url":"https://api.github.com/users/aenario/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aenario/cozy-stack","description":"Simple, Versatile, Yours","fork":true,"url":"https://api.github.com/repos/aenario/cozy-stack","forks_url":"https://api.github.com/repos/aenario/cozy-stack/forks","keys_url":"https://api.github.com/repos/aenario/cozy-stack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aenario/cozy-stack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aenario/cozy-stack/teams","hooks_url":"https://api.github.com/repos/aenario/cozy-stack/hooks","issue_events_url":"https://api.github.com/repos/aenario/cozy-stack/issues/events{/number}","events_url":"https://api.github.com/repos/aenario/cozy-stack/events","assignees_url":"https://api.github.com/repos/aenario/cozy-stack/assignees{/user}","branches_url":"https://api.github.com/repos/aenario/cozy-stack/branches{/branch}","tags_url":"https://api.github.com/repos/aenario/cozy-stack/tags","blobs_url":"https://api.github.com/repos/aenario/cozy-stack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aenario/cozy-stack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aenario/cozy-stack/git/refs{/sha}","trees_url":"https://api.github.com/repos/aenario/cozy-stack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aenario/cozy-stack/statuses/{sha}","languages_url":"https://api.github.com/repos/aenario/cozy-stack/languages","stargazers_url":"https://api.github.com/repos/aenario/cozy-stack/stargazers","contributors_url":"https://api.github.com/repos/aenario/cozy-stack/contributors","subscribers_url":"https://api.github.com/repos/aenario/cozy-stack/subscribers","subscription_url":"https://api.github.com/repos/aenario/cozy-stack/subscription","commits_url":"https://api.github.com/repos/aenario/cozy-stack/commits{/sha}","git_commits_url":"https://api.github.com/repos/aenario/cozy-stack/git/commits{/sha}","comments_url":"https://api.github.com/repos/aenario/cozy-stack/comments{/number}","issue_comment_url":"https://api.github.com/repos/aenario/cozy-stack/issues/comments{/number}","contents_url":"https://api.github.com/repos/aenario/cozy-stack/contents/{+path}","compare_url":"https://api.github.com/repos/aenario/cozy-stack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aenario/cozy-stack/merges","archive_url":"https://api.github.com/repos/aenario/cozy-stack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aenario/cozy-stack/downloads","issues_url":"https://api.github.com/repos/aenario/cozy-stack/issues{/number}","pulls_url":"https://api.github.com/repos/aenario/cozy-stack/pulls{/number}","milestones_url":"https://api.github.com/repos/aenario/cozy-stack/milestones{/number}","notifications_url":"https://api.github.com/repos/aenario/cozy-stack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aenario/cozy-stack/labels{/name}","releases_url":"https://api.github.com/repos/aenario/cozy-stack/releases{/id}","deployments_url":"https://api.github.com/repos/aenario/cozy-stack/deployments","created_at":"2016-10-04T10:05:13Z","updated_at":"2016-10-04T10:05:14Z","pushed_at":"2016-11-10T13:00:59Z","git_url":"git://github.com/aenario/cozy-stack.git","ssh_url":"git@github.com:aenario/cozy-stack.git","clone_url":"https://github.com/aenario/cozy-stack.git","svn_url":"https://github.com/aenario/cozy-stack","homepage":"https://cozy.io","size":640,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"cozy:master","ref":"master","sha":"b212fdf85fe8ead49d4780f302fb009cba07e2b1","user":{"login":"cozy","id":7690525,"avatar_url":"https://avatars.githubusercontent.com/u/7690525?v=3","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"repo":{"id":63433838,"name":"cozy-stack","full_name":"cozy/cozy-stack","owner":{"login":"cozy","id":7690525,"avatar_url":"https://avatars.githubusercontent.com/u/7690525?v=3","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cozy/cozy-stack","description":"Simple, Versatile, Yours","fork":false,"url":"https://api.github.com/repos/cozy/cozy-stack","forks_url":"https://api.github.com/repos/cozy/cozy-stack/forks","keys_url":"https://api.github.com/repos/cozy/cozy-stack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cozy/cozy-stack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cozy/cozy-stack/teams","hooks_url":"https://api.github.com/repos/cozy/cozy-stack/hooks","issue_events_url":"https://api.github.com/repos/cozy/cozy-stack/issues/events{/number}","events_url":"https://api.github.com/repos/cozy/cozy-stack/events","assignees_url":"https://api.github.com/repos/cozy/cozy-stack/assignees{/user}","branches_url":"https://api.github.com/repos/cozy/cozy-stack/branches{/branch}","tags_url":"https://api.github.com/repos/cozy/cozy-stack/tags","blobs_url":"https://api.github.com/repos/cozy/cozy-stack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cozy/cozy-stack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cozy/cozy-stack/git/refs{/sha}","trees_url":"https://api.github.com/repos/cozy/cozy-stack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cozy/cozy-stack/statuses/{sha}","languages_url":"https://api.github.com/repos/cozy/cozy-stack/languages","stargazers_url":"https://api.github.com/repos/cozy/cozy-stack/stargazers","contributors_url":"https://api.github.com/repos/cozy/cozy-stack/contributors","subscribers_url":"https://api.github.com/repos/cozy/cozy-stack/subscribers","subscription_url":"https://api.github.com/repos/cozy/cozy-stack/subscription","commits_url":"https://api.github.com/repos/cozy/cozy-stack/commits{/sha}","git_commits_url":"https://api.github.com/repos/cozy/cozy-stack/git/commits{/sha}","comments_url":"https://api.github.com/repos/cozy/cozy-stack/comments{/number}","issue_comment_url":"https://api.github.com/repos/cozy/cozy-stack/issues/comments{/number}","contents_url":"https://api.github.com/repos/cozy/cozy-stack/contents/{+path}","compare_url":"https://api.github.com/repos/cozy/cozy-stack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cozy/cozy-stack/merges","archive_url":"https://api.github.com/repos/cozy/cozy-stack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cozy/cozy-stack/downloads","issues_url":"https://api.github.com/repos/cozy/cozy-stack/issues{/number}","pulls_url":"https://api.github.com/repos/cozy/cozy-stack/pulls{/number}","milestones_url":"https://api.github.com/repos/cozy/cozy-stack/milestones{/number}","notifications_url":"https://api.github.com/repos/cozy/cozy-stack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cozy/cozy-stack/labels{/name}","releases_url":"https://api.github.com/repos/cozy/cozy-stack/releases{/id}","deployments_url":"https://api.github.com/repos/cozy/cozy-stack/deployments","created_at":"2016-07-15T15:54:30Z","updated_at":"2016-11-03T14:58:00Z","pushed_at":"2016-11-10T13:01:42Z","git_url":"git://github.com/cozy/cozy-stack.git","ssh_url":"git@github.com:cozy/cozy-stack.git","clone_url":"https://github.com/cozy/cozy-stack.git","svn_url":"https://github.com/cozy/cozy-stack","homepage":"https://cozy.io","size":659,"stargazers_count":28,"watchers_count":28,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":6,"forks":10,"open_issues":6,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cozy/cozy-stack/pulls/94"},"html":{"href":"https://github.com/cozy/cozy-stack/pull/94"},"issue":{"href":"https://api.github.com/repos/cozy/cozy-stack/issues/94"},"comments":{"href":"https://api.github.com/repos/cozy/cozy-stack/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/cozy/cozy-stack/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/cozy/cozy-stack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cozy/cozy-stack/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/cozy/cozy-stack/statuses/0f0c01ce234c7fe53c1f546e880bc7c865289344"}}}}
{"actor":{"display_login":"jinroh"}}