{"action":"created","comment":{"url":"https://api.github.com/repos/CanalTP/navitia/pulls/comments/57041086","id":57041086,"diff_hunk":"@@ -199,6 +199,44 @@ error is sent. If filter can not be parsed, an \"unable_to_parse\" error\n is sent. If object or attribute provided is not handled, the filter is\n ignored.\n \n+#### {collection}.has_code\n+\n+Every object managed by Navitia comes with its own list of ids. \n+You will find some source ids, merge ids, etc. in \"codes\" list in json responses.\n+Be careful, there are not unique. Navitia id is the only lonely unique id.\n+\n+``` json\n+        codes :\n+        [\n+            0 :\n+            {\n+                type : \"external_code\",\n+                value : \"OBO5852\"\n+            },\n+            1 :\n+            {\n+                type : \"gtfs_stop_code\",\n+                value : \"PLA40A\"\n+            },\n+            2 :\n+            {\n+                type : \"source\",\n+                value : \"5852\"\n+            }\n+        ]\n+```\n+\n+You may have to request an object by one of these ids, in order to call an external service for example.\n+\n+The filter format is `filter={collection_name}.has_code({code_type},{code_value})`\n+\n+Examples :\n+\n+-   <https://api.navitia.io/v1/coverage/fr-sw/stop_points?filter=stop_point.has_code(source,5852)>\n+-   <https://api.navitia.io/v1/coverage/fr-sw/stop_areas?filter=stop_area.has_code(gtfs_stop_code,1)>\n+-   <http://vip-jormpre-ws.mutu.prod.canaltp.fr/v1/coverage/fr-sw/lines?filter=line.has_code(source,11821949021891615)>","path":"documentation/slate/source/includes/apis.md","position":39,"original_position":39,"commit_id":"216a95c500178a57bb6f09df5ea07ff058b90e4c","original_commit_id":"216a95c500178a57bb6f09df5ea07ff058b90e4c","user":{"login":"pbougue","id":12812530,"avatar_url":"https://avatars.githubusercontent.com/u/12812530?v=3","gravatar_id":"","url":"https://api.github.com/users/pbougue","html_url":"https://github.com/pbougue","followers_url":"https://api.github.com/users/pbougue/followers","following_url":"https://api.github.com/users/pbougue/following{/other_user}","gists_url":"https://api.github.com/users/pbougue/gists{/gist_id}","starred_url":"https://api.github.com/users/pbougue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbougue/subscriptions","organizations_url":"https://api.github.com/users/pbougue/orgs","repos_url":"https://api.github.com/users/pbougue/repos","events_url":"https://api.github.com/users/pbougue/events{/privacy}","received_events_url":"https://api.github.com/users/pbougue/received_events","type":"User","site_admin":false},"body":"this url is not so clean","created_at":"2016-03-22T18:20:19Z","updated_at":"2016-03-22T18:20:19Z","html_url":"https://github.com/CanalTP/navitia/pull/1496#discussion_r57041086","pull_request_url":"https://api.github.com/repos/CanalTP/navitia/pulls/1496","_links":{"self":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/comments/57041086"},"html":{"href":"https://github.com/CanalTP/navitia/pull/1496#discussion_r57041086"},"pull_request":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1496"}}},"pull_request":{"url":"https://api.github.com/repos/CanalTP/navitia/pulls/1496","id":63764337,"html_url":"https://github.com/CanalTP/navitia/pull/1496","diff_url":"https://github.com/CanalTP/navitia/pull/1496.diff","patch_url":"https://github.com/CanalTP/navitia/pull/1496.patch","issue_url":"https://api.github.com/repos/CanalTP/navitia/issues/1496","number":1496,"state":"closed","locked":false,"title":"Doc: add has_code description","user":{"login":"stifoon","id":2752490,"avatar_url":"https://avatars.githubusercontent.com/u/2752490?v=3","gravatar_id":"","url":"https://api.github.com/users/stifoon","html_url":"https://github.com/stifoon","followers_url":"https://api.github.com/users/stifoon/followers","following_url":"https://api.github.com/users/stifoon/following{/other_user}","gists_url":"https://api.github.com/users/stifoon/gists{/gist_id}","starred_url":"https://api.github.com/users/stifoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stifoon/subscriptions","organizations_url":"https://api.github.com/users/stifoon/orgs","repos_url":"https://api.github.com/users/stifoon/repos","events_url":"https://api.github.com/users/stifoon/events{/privacy}","received_events_url":"https://api.github.com/users/stifoon/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-22T17:54:30Z","updated_at":"2016-03-22T18:20:19Z","closed_at":"2016-03-22T17:56:16Z","merged_at":"2016-03-22T17:56:16Z","merge_commit_sha":"d3555841c280e928feb663c11caf8a94d52d88d9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CanalTP/navitia/pulls/1496/commits","review_comments_url":"https://api.github.com/repos/CanalTP/navitia/pulls/1496/comments","review_comment_url":"https://api.github.com/repos/CanalTP/navitia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CanalTP/navitia/issues/1496/comments","statuses_url":"https://api.github.com/repos/CanalTP/navitia/statuses/216a95c500178a57bb6f09df5ea07ff058b90e4c","head":{"label":"stifoon:doc_migration_slate","ref":"doc_migration_slate","sha":"216a95c500178a57bb6f09df5ea07ff058b90e4c","user":{"login":"stifoon","id":2752490,"avatar_url":"https://avatars.githubusercontent.com/u/2752490?v=3","gravatar_id":"","url":"https://api.github.com/users/stifoon","html_url":"https://github.com/stifoon","followers_url":"https://api.github.com/users/stifoon/followers","following_url":"https://api.github.com/users/stifoon/following{/other_user}","gists_url":"https://api.github.com/users/stifoon/gists{/gist_id}","starred_url":"https://api.github.com/users/stifoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stifoon/subscriptions","organizations_url":"https://api.github.com/users/stifoon/orgs","repos_url":"https://api.github.com/users/stifoon/repos","events_url":"https://api.github.com/users/stifoon/events{/privacy}","received_events_url":"https://api.github.com/users/stifoon/received_events","type":"User","site_admin":false},"repo":{"id":21346734,"name":"navitia","full_name":"stifoon/navitia","owner":{"login":"stifoon","id":2752490,"avatar_url":"https://avatars.githubusercontent.com/u/2752490?v=3","gravatar_id":"","url":"https://api.github.com/users/stifoon","html_url":"https://github.com/stifoon","followers_url":"https://api.github.com/users/stifoon/followers","following_url":"https://api.github.com/users/stifoon/following{/other_user}","gists_url":"https://api.github.com/users/stifoon/gists{/gist_id}","starred_url":"https://api.github.com/users/stifoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stifoon/subscriptions","organizations_url":"https://api.github.com/users/stifoon/orgs","repos_url":"https://api.github.com/users/stifoon/repos","events_url":"https://api.github.com/users/stifoon/events{/privacy}","received_events_url":"https://api.github.com/users/stifoon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stifoon/navitia","description":"The REST API to build cool stuff with public transport","fork":true,"url":"https://api.github.com/repos/stifoon/navitia","forks_url":"https://api.github.com/repos/stifoon/navitia/forks","keys_url":"https://api.github.com/repos/stifoon/navitia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stifoon/navitia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stifoon/navitia/teams","hooks_url":"https://api.github.com/repos/stifoon/navitia/hooks","issue_events_url":"https://api.github.com/repos/stifoon/navitia/issues/events{/number}","events_url":"https://api.github.com/repos/stifoon/navitia/events","assignees_url":"https://api.github.com/repos/stifoon/navitia/assignees{/user}","branches_url":"https://api.github.com/repos/stifoon/navitia/branches{/branch}","tags_url":"https://api.github.com/repos/stifoon/navitia/tags","blobs_url":"https://api.github.com/repos/stifoon/navitia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stifoon/navitia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stifoon/navitia/git/refs{/sha}","trees_url":"https://api.github.com/repos/stifoon/navitia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stifoon/navitia/statuses/{sha}","languages_url":"https://api.github.com/repos/stifoon/navitia/languages","stargazers_url":"https://api.github.com/repos/stifoon/navitia/stargazers","contributors_url":"https://api.github.com/repos/stifoon/navitia/contributors","subscribers_url":"https://api.github.com/repos/stifoon/navitia/subscribers","subscription_url":"https://api.github.com/repos/stifoon/navitia/subscription","commits_url":"https://api.github.com/repos/stifoon/navitia/commits{/sha}","git_commits_url":"https://api.github.com/repos/stifoon/navitia/git/commits{/sha}","comments_url":"https://api.github.com/repos/stifoon/navitia/comments{/number}","issue_comment_url":"https://api.github.com/repos/stifoon/navitia/issues/comments{/number}","contents_url":"https://api.github.com/repos/stifoon/navitia/contents/{+path}","compare_url":"https://api.github.com/repos/stifoon/navitia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stifoon/navitia/merges","archive_url":"https://api.github.com/repos/stifoon/navitia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stifoon/navitia/downloads","issues_url":"https://api.github.com/repos/stifoon/navitia/issues{/number}","pulls_url":"https://api.github.com/repos/stifoon/navitia/pulls{/number}","milestones_url":"https://api.github.com/repos/stifoon/navitia/milestones{/number}","notifications_url":"https://api.github.com/repos/stifoon/navitia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stifoon/navitia/labels{/name}","releases_url":"https://api.github.com/repos/stifoon/navitia/releases{/id}","deployments_url":"https://api.github.com/repos/stifoon/navitia/deployments","created_at":"2014-06-30T09:55:18Z","updated_at":"2015-02-06T11:17:36Z","pushed_at":"2016-03-22T17:52:59Z","git_url":"git://github.com/stifoon/navitia.git","ssh_url":"git@github.com:stifoon/navitia.git","clone_url":"https://github.com/stifoon/navitia.git","svn_url":"https://github.com/stifoon/navitia","homepage":"http://www.navitia.io","size":29017,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"dev"}},"base":{"label":"CanalTP:dev","ref":"dev","sha":"1bcdc6bc60fd541f558bb0ebf171c59bd19055c5","user":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars.githubusercontent.com/u/2743985?v=3","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"repo":{"id":10797333,"name":"navitia","full_name":"CanalTP/navitia","owner":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars.githubusercontent.com/u/2743985?v=3","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CanalTP/navitia","description":"The open source software to build responsive stuff with locomotion","fork":false,"url":"https://api.github.com/repos/CanalTP/navitia","forks_url":"https://api.github.com/repos/CanalTP/navitia/forks","keys_url":"https://api.github.com/repos/CanalTP/navitia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CanalTP/navitia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CanalTP/navitia/teams","hooks_url":"https://api.github.com/repos/CanalTP/navitia/hooks","issue_events_url":"https://api.github.com/repos/CanalTP/navitia/issues/events{/number}","events_url":"https://api.github.com/repos/CanalTP/navitia/events","assignees_url":"https://api.github.com/repos/CanalTP/navitia/assignees{/user}","branches_url":"https://api.github.com/repos/CanalTP/navitia/branches{/branch}","tags_url":"https://api.github.com/repos/CanalTP/navitia/tags","blobs_url":"https://api.github.com/repos/CanalTP/navitia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CanalTP/navitia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CanalTP/navitia/git/refs{/sha}","trees_url":"https://api.github.com/repos/CanalTP/navitia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CanalTP/navitia/statuses/{sha}","languages_url":"https://api.github.com/repos/CanalTP/navitia/languages","stargazers_url":"https://api.github.com/repos/CanalTP/navitia/stargazers","contributors_url":"https://api.github.com/repos/CanalTP/navitia/contributors","subscribers_url":"https://api.github.com/repos/CanalTP/navitia/subscribers","subscription_url":"https://api.github.com/repos/CanalTP/navitia/subscription","commits_url":"https://api.github.com/repos/CanalTP/navitia/commits{/sha}","git_commits_url":"https://api.github.com/repos/CanalTP/navitia/git/commits{/sha}","comments_url":"https://api.github.com/repos/CanalTP/navitia/comments{/number}","issue_comment_url":"https://api.github.com/repos/CanalTP/navitia/issues/comments{/number}","contents_url":"https://api.github.com/repos/CanalTP/navitia/contents/{+path}","compare_url":"https://api.github.com/repos/CanalTP/navitia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CanalTP/navitia/merges","archive_url":"https://api.github.com/repos/CanalTP/navitia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CanalTP/navitia/downloads","issues_url":"https://api.github.com/repos/CanalTP/navitia/issues{/number}","pulls_url":"https://api.github.com/repos/CanalTP/navitia/pulls{/number}","milestones_url":"https://api.github.com/repos/CanalTP/navitia/milestones{/number}","notifications_url":"https://api.github.com/repos/CanalTP/navitia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CanalTP/navitia/labels{/name}","releases_url":"https://api.github.com/repos/CanalTP/navitia/releases{/id}","deployments_url":"https://api.github.com/repos/CanalTP/navitia/deployments","created_at":"2013-06-19T15:34:30Z","updated_at":"2016-03-14T17:49:40Z","pushed_at":"2016-03-22T18:07:15Z","git_url":"git://github.com/CanalTP/navitia.git","ssh_url":"git@github.com:CanalTP/navitia.git","clone_url":"https://github.com/CanalTP/navitia.git","svn_url":"https://github.com/CanalTP/navitia","homepage":"http://www.navitia.io","size":34026,"stargazers_count":155,"watchers_count":155,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":53,"mirror_url":null,"open_issues_count":17,"forks":53,"open_issues":17,"watchers":155,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1496"},"html":{"href":"https://github.com/CanalTP/navitia/pull/1496"},"issue":{"href":"https://api.github.com/repos/CanalTP/navitia/issues/1496"},"comments":{"href":"https://api.github.com/repos/CanalTP/navitia/issues/1496/comments"},"review_comments":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1496/comments"},"review_comment":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1496/commits"},"statuses":{"href":"https://api.github.com/repos/CanalTP/navitia/statuses/216a95c500178a57bb6f09df5ea07ff058b90e4c"}}}}