{"action":"created","comment":{"url":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls/comments/174513567","pull_request_review_id":103884154,"id":174513567,"diff_hunk":"@@ -0,0 +1,54 @@\n+const { Router } = require('express');\n+\n+const router = new Router();\n+\n+const controller = require('./search.controller');\n+\n+/**\n+ * @api {get} /search?q=:query&content=:contents Search in documents or categories\n+ * @apiName Search\n+ * @apiGroup Search\n+ * @apiDescription Cette URL affiche un JSON contenant tous les résultats de la recherche, pouvant\n+ * être des documents ou des catégories\n+ *\n+ * @apiParam  {String}  query   Le champ de la recherche à effectuer\n+ * @apiParam  {String}  [contents]  Le type à rechercher: documents/categories.\n+ * Si absent: recherche dans catégories et documents\n+ *\n+ * @apiParamExample {String} Query:\n+ *    query=maths\n+ *    contents=categories,documents","path":"backend/src/api/search/index.js","position":null,"original_position":20,"commit_id":"ef51b94b19bde13ad17ffb4356b89573cf4924eb","original_commit_id":"51e5c6dcf02ac331a5313ba2e6d1983063cfa181","user":{"login":"m1ch3lcl","id":14214899,"avatar_url":"https://avatars3.githubusercontent.com/u/14214899?v=4","gravatar_id":"","url":"https://api.github.com/users/m1ch3lcl","html_url":"https://github.com/m1ch3lcl","followers_url":"https://api.github.com/users/m1ch3lcl/followers","following_url":"https://api.github.com/users/m1ch3lcl/following{/other_user}","gists_url":"https://api.github.com/users/m1ch3lcl/gists{/gist_id}","starred_url":"https://api.github.com/users/m1ch3lcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m1ch3lcl/subscriptions","organizations_url":"https://api.github.com/users/m1ch3lcl/orgs","repos_url":"https://api.github.com/users/m1ch3lcl/repos","events_url":"https://api.github.com/users/m1ch3lcl/events{/privacy}","received_events_url":"https://api.github.com/users/m1ch3lcl/received_events","type":"User","site_admin":false},"body":"à modifier @Hazegard ","created_at":"2018-03-14T16:00:52Z","updated_at":"2018-03-14T16:27:08Z","html_url":"https://github.com/EBM-2017-2018/OKLM/pull/21#discussion_r174513567","pull_request_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls/21","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls/comments/174513567"},"html":{"href":"https://github.com/EBM-2017-2018/OKLM/pull/21#discussion_r174513567"},"pull_request":{"href":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls/21","id":174601334,"html_url":"https://github.com/EBM-2017-2018/OKLM/pull/21","diff_url":"https://github.com/EBM-2017-2018/OKLM/pull/21.diff","patch_url":"https://github.com/EBM-2017-2018/OKLM/pull/21.patch","issue_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/issues/21","number":21,"state":"open","locked":false,"title":"Searchapi","user":{"login":"Hazegard","id":11147206,"avatar_url":"https://avatars1.githubusercontent.com/u/11147206?v=4","gravatar_id":"","url":"https://api.github.com/users/Hazegard","html_url":"https://github.com/Hazegard","followers_url":"https://api.github.com/users/Hazegard/followers","following_url":"https://api.github.com/users/Hazegard/following{/other_user}","gists_url":"https://api.github.com/users/Hazegard/gists{/gist_id}","starred_url":"https://api.github.com/users/Hazegard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hazegard/subscriptions","organizations_url":"https://api.github.com/users/Hazegard/orgs","repos_url":"https://api.github.com/users/Hazegard/repos","events_url":"https://api.github.com/users/Hazegard/events{/privacy}","received_events_url":"https://api.github.com/users/Hazegard/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-13T09:32:50Z","updated_at":"2018-03-14T16:27:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7718f806acf1ba5cb553d2ced126dcc37fa1a1b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"nymous","id":4216559,"avatar_url":"https://avatars1.githubusercontent.com/u/4216559?v=4","gravatar_id":"","url":"https://api.github.com/users/nymous","html_url":"https://github.com/nymous","followers_url":"https://api.github.com/users/nymous/followers","following_url":"https://api.github.com/users/nymous/following{/other_user}","gists_url":"https://api.github.com/users/nymous/gists{/gist_id}","starred_url":"https://api.github.com/users/nymous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nymous/subscriptions","organizations_url":"https://api.github.com/users/nymous/orgs","repos_url":"https://api.github.com/users/nymous/repos","events_url":"https://api.github.com/users/nymous/events{/privacy}","received_events_url":"https://api.github.com/users/nymous/received_events","type":"User","site_admin":false},{"login":"Ekarz","id":18880329,"avatar_url":"https://avatars1.githubusercontent.com/u/18880329?v=4","gravatar_id":"","url":"https://api.github.com/users/Ekarz","html_url":"https://github.com/Ekarz","followers_url":"https://api.github.com/users/Ekarz/followers","following_url":"https://api.github.com/users/Ekarz/following{/other_user}","gists_url":"https://api.github.com/users/Ekarz/gists{/gist_id}","starred_url":"https://api.github.com/users/Ekarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ekarz/subscriptions","organizations_url":"https://api.github.com/users/Ekarz/orgs","repos_url":"https://api.github.com/users/Ekarz/repos","events_url":"https://api.github.com/users/Ekarz/events{/privacy}","received_events_url":"https://api.github.com/users/Ekarz/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls/21/commits","review_comments_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls/21/comments","review_comment_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/issues/21/comments","statuses_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/statuses/ef51b94b19bde13ad17ffb4356b89573cf4924eb","head":{"label":"EBM-2017-2018:searchapi","ref":"searchapi","sha":"ef51b94b19bde13ad17ffb4356b89573cf4924eb","user":{"login":"EBM-2017-2018","id":31919910,"avatar_url":"https://avatars0.githubusercontent.com/u/31919910?v=4","gravatar_id":"","url":"https://api.github.com/users/EBM-2017-2018","html_url":"https://github.com/EBM-2017-2018","followers_url":"https://api.github.com/users/EBM-2017-2018/followers","following_url":"https://api.github.com/users/EBM-2017-2018/following{/other_user}","gists_url":"https://api.github.com/users/EBM-2017-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/EBM-2017-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EBM-2017-2018/subscriptions","organizations_url":"https://api.github.com/users/EBM-2017-2018/orgs","repos_url":"https://api.github.com/users/EBM-2017-2018/repos","events_url":"https://api.github.com/users/EBM-2017-2018/events{/privacy}","received_events_url":"https://api.github.com/users/EBM-2017-2018/received_events","type":"Organization","site_admin":false},"repo":{"id":118443244,"name":"OKLM","full_name":"EBM-2017-2018/OKLM","owner":{"login":"EBM-2017-2018","id":31919910,"avatar_url":"https://avatars0.githubusercontent.com/u/31919910?v=4","gravatar_id":"","url":"https://api.github.com/users/EBM-2017-2018","html_url":"https://github.com/EBM-2017-2018","followers_url":"https://api.github.com/users/EBM-2017-2018/followers","following_url":"https://api.github.com/users/EBM-2017-2018/following{/other_user}","gists_url":"https://api.github.com/users/EBM-2017-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/EBM-2017-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EBM-2017-2018/subscriptions","organizations_url":"https://api.github.com/users/EBM-2017-2018/orgs","repos_url":"https://api.github.com/users/EBM-2017-2018/repos","events_url":"https://api.github.com/users/EBM-2017-2018/events{/privacy}","received_events_url":"https://api.github.com/users/EBM-2017-2018/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EBM-2017-2018/OKLM","description":null,"fork":false,"url":"https://api.github.com/repos/EBM-2017-2018/OKLM","forks_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/forks","keys_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/teams","hooks_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/hooks","issue_events_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/issues/events{/number}","events_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/events","assignees_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/assignees{/user}","branches_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/branches{/branch}","tags_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/tags","blobs_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/git/refs{/sha}","trees_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/statuses/{sha}","languages_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/languages","stargazers_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/stargazers","contributors_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/contributors","subscribers_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/subscribers","subscription_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/subscription","commits_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/commits{/sha}","git_commits_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/git/commits{/sha}","comments_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/comments{/number}","issue_comment_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/issues/comments{/number}","contents_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/contents/{+path}","compare_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/merges","archive_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/downloads","issues_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/issues{/number}","pulls_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls{/number}","milestones_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/milestones{/number}","notifications_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/labels{/name}","releases_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/releases{/id}","deployments_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/deployments","created_at":"2018-01-22T10:38:26Z","updated_at":"2018-03-14T14:30:02Z","pushed_at":"2018-03-14T16:25:08Z","git_url":"git://github.com/EBM-2017-2018/OKLM.git","ssh_url":"git@github.com:EBM-2017-2018/OKLM.git","clone_url":"https://github.com/EBM-2017-2018/OKLM.git","svn_url":"https://github.com/EBM-2017-2018/OKLM","homepage":"https://ebm-2017-2018.github.io/OKLM/","size":724,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"EBM-2017-2018:master","ref":"master","sha":"4b239ebf6639aa119c94cc9df3ba26374cc0d1f3","user":{"login":"EBM-2017-2018","id":31919910,"avatar_url":"https://avatars0.githubusercontent.com/u/31919910?v=4","gravatar_id":"","url":"https://api.github.com/users/EBM-2017-2018","html_url":"https://github.com/EBM-2017-2018","followers_url":"https://api.github.com/users/EBM-2017-2018/followers","following_url":"https://api.github.com/users/EBM-2017-2018/following{/other_user}","gists_url":"https://api.github.com/users/EBM-2017-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/EBM-2017-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EBM-2017-2018/subscriptions","organizations_url":"https://api.github.com/users/EBM-2017-2018/orgs","repos_url":"https://api.github.com/users/EBM-2017-2018/repos","events_url":"https://api.github.com/users/EBM-2017-2018/events{/privacy}","received_events_url":"https://api.github.com/users/EBM-2017-2018/received_events","type":"Organization","site_admin":false},"repo":{"id":118443244,"name":"OKLM","full_name":"EBM-2017-2018/OKLM","owner":{"login":"EBM-2017-2018","id":31919910,"avatar_url":"https://avatars0.githubusercontent.com/u/31919910?v=4","gravatar_id":"","url":"https://api.github.com/users/EBM-2017-2018","html_url":"https://github.com/EBM-2017-2018","followers_url":"https://api.github.com/users/EBM-2017-2018/followers","following_url":"https://api.github.com/users/EBM-2017-2018/following{/other_user}","gists_url":"https://api.github.com/users/EBM-2017-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/EBM-2017-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EBM-2017-2018/subscriptions","organizations_url":"https://api.github.com/users/EBM-2017-2018/orgs","repos_url":"https://api.github.com/users/EBM-2017-2018/repos","events_url":"https://api.github.com/users/EBM-2017-2018/events{/privacy}","received_events_url":"https://api.github.com/users/EBM-2017-2018/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EBM-2017-2018/OKLM","description":null,"fork":false,"url":"https://api.github.com/repos/EBM-2017-2018/OKLM","forks_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/forks","keys_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/teams","hooks_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/hooks","issue_events_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/issues/events{/number}","events_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/events","assignees_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/assignees{/user}","branches_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/branches{/branch}","tags_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/tags","blobs_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/git/refs{/sha}","trees_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/statuses/{sha}","languages_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/languages","stargazers_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/stargazers","contributors_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/contributors","subscribers_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/subscribers","subscription_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/subscription","commits_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/commits{/sha}","git_commits_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/git/commits{/sha}","comments_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/comments{/number}","issue_comment_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/issues/comments{/number}","contents_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/contents/{+path}","compare_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/merges","archive_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/downloads","issues_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/issues{/number}","pulls_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls{/number}","milestones_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/milestones{/number}","notifications_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/labels{/name}","releases_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/releases{/id}","deployments_url":"https://api.github.com/repos/EBM-2017-2018/OKLM/deployments","created_at":"2018-01-22T10:38:26Z","updated_at":"2018-03-14T14:30:02Z","pushed_at":"2018-03-14T16:25:08Z","git_url":"git://github.com/EBM-2017-2018/OKLM.git","ssh_url":"git@github.com:EBM-2017-2018/OKLM.git","clone_url":"https://github.com/EBM-2017-2018/OKLM.git","svn_url":"https://github.com/EBM-2017-2018/OKLM","homepage":"https://ebm-2017-2018.github.io/OKLM/","size":724,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls/21"},"html":{"href":"https://github.com/EBM-2017-2018/OKLM/pull/21"},"issue":{"href":"https://api.github.com/repos/EBM-2017-2018/OKLM/issues/21"},"comments":{"href":"https://api.github.com/repos/EBM-2017-2018/OKLM/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EBM-2017-2018/OKLM/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/EBM-2017-2018/OKLM/statuses/ef51b94b19bde13ad17ffb4356b89573cf4924eb"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"m1ch3lcl"}}