{"info":{"_postman_id":"3c9979a8-5a0b-4129-ac7d-ef0ff62dd988","name":"Chouette API","description":"<html><head></head><body><h2 id=\"general-principle\">General principle</h2>\n<p>This API is reserved for users of Chouette SaaS platform <a href=\"https://chouette.enroute.mobi/\">https://chouette.enroute.mobi/</a></p>\n<p>All requests return:</p>\n<ul>\n<li>an HTTP 200 code (OK): if successful</li>\n<li>an HTTP 400 code (Bad Request): when parameters are unknown.</li>\n<li>an HTTP code 406 (Not Acceptable): when the data provided do not allow the request to be processed</li>\n<li>an HTTP 500 code (Internal Server Error): in the event of an undetermined error</li>\n</ul>\n<p>API calls are made only in HTTPS.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>There are 2 different types of authentication :</p>\n<ul>\n<li>to control access to data published by Chouette using the environment variable publication_api_key</li>\n<li>to control access to internal resources managed by Chouette using the api_key environment variable</li>\n</ul>\n<p>These 2 authentications are done via API keys in request header.</p>\n<p>For publication, it is possible to generate it by going in the menu : Settings &gt; Publications &gt; Publication API.</p>\n<p>For import, it is possible to generate it by going in the menu : Settings &gt; API Keys.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9950294","collectionId":"3c9979a8-5a0b-4129-ac7d-ef0ff62dd988","publishedId":"Szf3aqMh","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-02-18T11:28:41.000Z"},"item":[{"name":"Import","item":[{"name":"View imports in a workbench","id":"b8f0d2df-e315-4831-83ff-8d9ff1fdd515","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{organisation_code}}"},{"key":"password","value":"{{api_key}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{CHOUETTE_URL}}/api/v1/workbenches/{{workbench_id}}/imports.json","urlObject":{"path":["api","v1","workbenches","{{workbench_id}}","imports.json"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"051e639f-5ab2-4f74-a089-cab9da0015a9","name":"View imports in a workbench","originalRequest":{"method":"GET","header":[],"url":"{{CHOUETTE_URL}}/api/v1/workbenches/{{workbench_id}}/imports.json"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"63d14b370c25a9d65d5c6925f2cf12f6\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"9f758c4e-4481-4b35-9f3d-83db9a98e628"},{"key":"X-Runtime","value":"0.031276"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Thu, 16 Apr 2020 13:16:28 GMT"},{"key":"Content-Length","value":"453"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1182,\n        \"name\": \"simple\",\n        \"status\": \"successful\",\n        \"referential_ids\": [\n            6192\n        ]\n    },\n    {\n        \"id\": 1183,\n        \"name\": \"simple\",\n        \"status\": \"successful\",\n        \"referential_ids\": []\n    },\n    {\n        \"id\": 743,\n        \"name\": \"Test Sprint 35\",\n        \"status\": \"successful\",\n        \"referential_ids\": []\n    },\n    {\n        \"id\": 742,\n        \"name\": \"Test Sprint 35\",\n        \"status\": \"successful\",\n        \"referential_ids\": [\n            6001\n        ]\n    },\n    {\n        \"id\": 741,\n        \"name\": \"neptune\",\n        \"status\": \"successful\",\n        \"referential_ids\": []\n    },\n    {\n        \"id\": 740,\n        \"name\": \"neptune\",\n        \"status\": \"successful\",\n        \"referential_ids\": [\n            6000\n        ]\n    }\n]"}],"_postman_id":"b8f0d2df-e315-4831-83ff-8d9ff1fdd515"},{"name":"View an import in a workbench","id":"efc6e849-aee2-4257-9214-903367882ea7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{organisation_code}}"},{"key":"password","value":"{{api_key}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{CHOUETTE_URL}}/api/v1/workbenches/{{workbench_id}}/imports/{{import_id}}.json","urlObject":{"path":["api","v1","workbenches","{{workbench_id}}","imports","{{import_id}}.json"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"a7533a71-cdb2-45ac-9faa-10fd5c6c938f","name":"View import in a workbench","originalRequest":{"method":"GET","header":[],"url":"{{CHOUETTE_URL}}/api/v1/workbenches/{{workbench_id}}/imports/{{import_id}}.json"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"f0f3679395c56a23d57f416dcebd5ee4\""},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Request-Id","value":"57fe66ee-9ef0-450b-899f-5aea3b047568"},{"key":"X-Runtime","value":"0.089472"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Date","value":"Thu, 16 Apr 2020 13:18:23 GMT"},{"key":"Content-Length","value":"74"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1182,\n    \"name\": \"simple\",\n    \"status\": \"successful\",\n    \"referential_ids\": [\n        6192\n    ]\n}"}],"_postman_id":"efc6e849-aee2-4257-9214-903367882ea7"},{"name":"Import a dataset in a workbench","id":"caf88d07-71ba-4b49-8f9d-da56a22223fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{organisation_code}}"},{"key":"password","value":"{{api_key}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"workbench_import[name]","type":"text","value":"postman without merge"},{"key":"workbench_import[file]","type":"file","src":"/Users/rindrarakotondrasoa/Downloads/expertise.zip"},{"key":"workbench_import[notification_target]","type":"text","value":"none","disabled":true},{"key":"workbench_import[options][automatic_merge]","type":"text","value":"false"},{"key":"workbench_import[options][flag_urgent]","type":"text","value":"false"},{"key":"workbench_import[options][default_company]","value":"aix-en-bus","type":"text","uuid":"192a6c66-5e4e-4a0b-836f-360ff3f67184","disabled":true}]},"url":"{{CHOUETTE_URL}}/api/v1/workbenches/{{workbench_id}}/imports.json","description":"<p>Parameters used : </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameters</th>\n<th>Values</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>[name]</td>\n<td>String</td>\n<td>Import name</td>\n</tr>\n<tr>\n<td>[file]</td>\n<td>File</td>\n<td>Import file</td>\n</tr>\n<tr>\n<td>[notification_target]</td>\n<td>workbench  or none</td>\n<td>Notify workbench users or none</td>\n</tr>\n<tr>\n<td>[options][automatic_merge]</td>\n<td>true or false</td>\n<td>Automatically merged imported data or not</td>\n</tr>\n<tr>\n<td>[options][flag_urgent]</td>\n<td>true or false</td>\n<td>Import contains urgent updates or not</td>\n</tr>\n<tr>\n<td>[options][archive_on_fail]</td>\n<td>true or false</td>\n<td>Archive imported datas if import failed</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","workbenches","{{workbench_id}}","imports.json"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"caf88d07-71ba-4b49-8f9d-da56a22223fc"},{"name":"Import  a dataset in a workbench and merge it","id":"a17dc53d-aad1-4439-9304-8d8dcf2df905","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{organisation_code}}"},{"key":"password","value":"{{api_key}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"workbench_import[name]","type":"text","value":"postman with merge"},{"key":"workbench_import[file]","type":"file","src":"/home/remy/Downloads/sample-feed-2019.zip"},{"key":"workbench_import[notification_target]","value":"none","type":"text"},{"key":"workbench_import[options][automatic_merge]","type":"text","value":"true"},{"key":"workbench_import[options][flag_urgent]","value":"true","type":"text"}]},"url":"{{CHOUETTE_URL}}/api/v1/workbenches/{{workbench_id}}/imports.json","description":"<p>Parameters used : </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameters</th>\n<th>Values</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>[name]</td>\n<td>String</td>\n<td>Import name</td>\n</tr>\n<tr>\n<td>[file]</td>\n<td>File</td>\n<td>Import file</td>\n</tr>\n<tr>\n<td>[notification_target]</td>\n<td>workbench  or none</td>\n<td>Notify workbench users or none</td>\n</tr>\n<tr>\n<td>[options][automatic_merge]</td>\n<td>true or false</td>\n<td>Automatically merged imported data or not</td>\n</tr>\n<tr>\n<td>[options][flag_urgent]</td>\n<td>true or false</td>\n<td>Import contains urgent updates or not</td>\n</tr>\n<tr>\n<td>[options][archive_on_fail]</td>\n<td>true or false</td>\n<td>Archive imported datas if import failed</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","workbenches","{{workbench_id}}","imports.json"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a17dc53d-aad1-4439-9304-8d8dcf2df905"}],"id":"30636ea5-3864-4c7b-ba6a-9119057f5726","description":"<p>This API uses the authentication system for internal exchanges</p>\n<p>This API allows in particular to feed the workspaces via automated import operations (these workspaces will contain the datasets).</p>\n<p>API endpoints use the identifier of the workspace. This information is available in the menu : Settings&gt; Security. This identifier is accessible at the same time as the API access keys.</p>\n<p>Authentication is performed using \"basic authentication\" as defined by RFC2617. The caller must use:</p>\n<ul>\n<li>the code of its organization as user,</li>\n<li>an API access key associated with its organization as a password.</li>\n</ul>\n<h2 id=\"environment-variables\">Environment variables</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment variables</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CHOUETTE_URL</td>\n<td>Url of the Chouette platform <a href=\"https://chouette.enroute.mobi/\">https://chouette.enroute.mobi/</a></td>\n</tr>\n<tr>\n<td>organisation_code</td>\n<td>Organisation Code</td>\n</tr>\n<tr>\n<td>api_key</td>\n<td>API key for imports</td>\n</tr>\n<tr>\n<td>workbench_id</td>\n<td>Workbench identifier</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{organisation_code}}"},{"key":"password","value":"{{api_key}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"834f42a2-2181-4454-873d-7d14618154d5","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b0421f62-3c19-4347-8320-1d660b57a028","type":"text/javascript","exec":[""]}}],"_postman_id":"30636ea5-3864-4c7b-ba6a-9119057f5726"},{"name":"Document","item":[{"name":"Import a document","id":"1d378dc6-3110-4258-ba7f-5680486a6443","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{organisation_code}}"},{"key":"password","value":"{{api_key}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"document[name]","value":"Import document","type":"text","id":0},{"key":"document[file]","type":"file","id":1,"fileUploadError":"","src":["/home/luc/Téléchargements/Chouette-GTFS-LYON-Mode-LOURD-21-10-2024.png"]},{"key":"document[document_type]","value":"fiche_horaire","type":"text","id":2},{"key":"document[validity_period][from]","value":"20/09/2024","type":"text","id":3},{"key":"document[validity_period][to]","value":"20/10/2024","type":"text","id":4}]},"url":"{{CHOUETTE_URL}}/api/v1/workbenches/{{workbench_id}}/documents.json","urlObject":{"path":["api","v1","workbenches","{{workbench_id}}","documents.json"],"host":["{{CHOUETTE_URL}}"],"query":[{"disabled":true,"key":"","value":""},{"id":1,"disabled":true,"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"1d378dc6-3110-4258-ba7f-5680486a6443"},{"name":"Import a document with codes","id":"31f375c3-0c0d-431b-bd77-a88c6be63444","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{organisation_code}}"},{"key":"password","value":"{{api_key}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"document[name]","value":"Import document","type":"text","id":0},{"key":"document[file]","type":"file","id":1,"fileUploadError":"","src":["/home/luc/Téléchargements/Chouette-GTFS-LYON-Mode-LOURD-21-10-2024.png"]},{"key":"document[document_type]","value":"fiche_horaire","type":"text","id":2},{"key":"document[codes][0][code_space]","value":"external","type":"text","id":3},{"key":"document[codes][0][value]","value":"4","type":"text","id":4}]},"url":"{{CHOUETTE_URL}}/api/v1/workbenches/{{workbench_id}}/documents.json","urlObject":{"path":["api","v1","workbenches","{{workbench_id}}","documents.json"],"host":["{{CHOUETTE_URL}}"],"query":[{"disabled":true,"key":"","value":""},{"id":1,"disabled":true,"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"31f375c3-0c0d-431b-bd77-a88c6be63444"}],"id":"5e8d3df6-9f25-46f7-a729-afc2a164edbf","description":"<p>This API uses the authentication system for internal exchanges</p>\n<p>This API allows in particular to feed the workspaces via automated import operations (these workspaces will contain the datasets).</p>\n<p>API endpoints use the identifier of the workspace. This information is available in the menu : Settings&gt; Security. This identifier is accessible at the same time as the API access keys.</p>\n<p>Authentication is performed using \"basic authentication\" as defined by RFC2617. The caller must use:</p>\n<ul>\n<li><p>the code of its organization as user,</p>\n</li>\n<li><p>an API access key associated with its organization as a password.</p>\n</li>\n</ul>\n<h2 id=\"environment-variables\">Environment variables</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment variables</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CHOUETTE_URL</td>\n<td>Url of the Chouette platform <a href=\"https://chouette.enroute.mobi/\">https://chouette.enroute.mobi/</a></td>\n</tr>\n<tr>\n<td>organisation_code</td>\n<td>Organisation Code</td>\n</tr>\n<tr>\n<td>api_key</td>\n<td>API key for imports</td>\n</tr>\n<tr>\n<td>workbench_id</td>\n<td>Workbench identifier</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"5e8d3df6-9f25-46f7-a729-afc2a164edbf","auth":{"type":"apikey","apikey":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"3c9979a8-5a0b-4129-ac7d-ef0ff62dd988","id":"3c9979a8-5a0b-4129-ac7d-ef0ff62dd988","name":"Chouette API","type":"collection"}}},{"name":"Webhooks","item":[{"name":"Stop area Referential","item":[{"name":"Create/Update Stop area","event":[{"listen":"prerequest","script":{"id":"56a539d9-2535-4b8d-9e36-146354719176","exec":["var xml = JSON.stringify('<StopPlace dataSourceRef=\"FR1-ARRET_AUTO\" version=\"880901\" created=\"2014-12-28T23:00:00Z\" changed=\"2018-08-29T19:53:22Z\" id=\"webhook-1\">\\","  <Name>Webhook Test</Name>\\","  <Centroid>\\","  <Location>\\","    <gml:pos srsName=\"EPSG:2154\">626874.5 6856185.5</gml:pos>\\","  </Location>\\","  </Centroid>\\","  <PostalAddress version=\"any\" id=\"FR1:PostalAddress:63922:\">\\","  <Town>Bois-d Arcy</Town>\\","  <PostalRegion>78073</PostalRegion>\\","  </PostalAddress>\\","  <StopPlaceType>onstreetBus</StopPlaceType>\\","</StopPlace>');","postman.setEnvironmentVariable(\"xml\", xml);"],"type":"text/javascript"}}],"id":"f5835656-560e-4ad7-861b-5a282a939c63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"updated\",\n  \"stop_place\": {{xml}}\n}","options":{"raw":{"language":"json"}}},"url":"{{CHOUETTE_URL}}/api/v1/stop_area_referentials/{{stop_area_referential}}/webhook","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"62451329-0f67-4b1e-804c-fc3dcd050997","id":"62451329-0f67-4b1e-804c-fc3dcd050997","name":"Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","stop_area_referentials","{{stop_area_referential}}","webhook"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f5835656-560e-4ad7-861b-5a282a939c63"},{"name":"Create/Update Stop areas","event":[{"listen":"prerequest","script":{"id":"56a539d9-2535-4b8d-9e36-146354719176","exec":["var xml = JSON.stringify('<stopPlaces><StopPlace dataSourceRef=\"FR1-ARRET_AUTO\" version=\"880901\" created=\"2014-12-28T23:00:00Z\" changed=\"2018-08-29T19:53:22Z\" id=\"webhook-1\">\\","  <Name>Webhook Test</Name>\\","  <Centroid>\\","  <Location>\\","    <gml:pos srsName=\"EPSG:2154\">626874.5 6856185.5</gml:pos>\\","  </Location>\\","  </Centroid>\\","  <PostalAddress version=\"any\" id=\"FR1:PostalAddress:63922:\">\\","  <Town>Bois-d Arcy</Town>\\","  <PostalRegion>78073</PostalRegion>\\","  </PostalAddress>\\","  <StopPlaceType>onstreetBus</StopPlaceType>\\","</StopPlace>\\","<StopPlace dataSourceRef=\"FR1-ARRET_AUTO\" version=\"880901\" created=\"2014-12-28T23:00:00Z\" changed=\"2018-08-29T19:53:22Z\" id=\"webhook-2\">\\","  <Name>Webhook Test 2</Name>\\","  <Centroid>\\","  <Location>\\","    <gml:pos srsName=\"EPSG:2154\">626874.5 6856185.5</gml:pos>\\","  </Location>\\","  </Centroid>\\","  <PostalAddress version=\"any\" id=\"FR1:PostalAddress:63922:\">\\","  <Town>Bois-d Arcy</Town>\\","  <PostalRegion>78073</PostalRegion>\\","  </PostalAddress>\\","  <StopPlaceType>onstreetBus</StopPlaceType>\\","</StopPlace></stopPlaces>');","postman.setEnvironmentVariable(\"xml\", xml);"],"type":"text/javascript"}}],"id":"ffedfe70-62b2-4734-b043-729965c8c4f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"updated\",\n  \"stop_places\": {{xml}}\n}","options":{"raw":{"language":"json"}}},"url":"{{CHOUETTE_URL}}/api/v1/stop_area_referentials/{{stop_area_referential}}/webhook","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"62451329-0f67-4b1e-804c-fc3dcd050997","id":"62451329-0f67-4b1e-804c-fc3dcd050997","name":"Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","stop_area_referentials","{{stop_area_referential}}","webhook"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ffedfe70-62b2-4734-b043-729965c8c4f3"},{"name":"Delete Stop areas","event":[{"listen":"prerequest","script":{"id":"56a539d9-2535-4b8d-9e36-146354719176","exec":[""],"type":"text/javascript"}}],"id":"38175fc6-49ae-49ef-b286-b95b7bc31642","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"destroyed\",\n  \"stop_places\": [{ \"id\": \"webhook-1\" }, {\"id\": \"webhook-2\"}]\n}","options":{"raw":{"language":"json"}}},"url":"{{CHOUETTE_URL}}/api/v1/stop_area_referentials/{{stop_area_referential}}/webhook","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"62451329-0f67-4b1e-804c-fc3dcd050997","id":"62451329-0f67-4b1e-804c-fc3dcd050997","name":"Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","stop_area_referentials","{{stop_area_referential}}","webhook"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"38175fc6-49ae-49ef-b286-b95b7bc31642"}],"id":"a688eef8-c93e-42ef-a8ec-35165e5832fb","description":"<p>When a resource is described by NeTEx XML, the NeTEx collection tag is:</p>\n<ul>\n<li>&lt;Quay&gt; for the Quay resource</li>\n<li>&lt;StopPlace&gt; for the StopPlace resource</li>\n</ul>\n<p>When several resources are described by the NeTEx XML, the associated NeTEx collection tag must be used to keep the XML document valid:</p>\n<ul>\n<li>&lt;quays&gt; for Quay resources</li>\n<li>&lt;stopPlaces&gt; for StopPlace resources</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"ecd61704-7e38-4dd5-877c-6c0a4d9f08be","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"43be36a1-07c5-46ef-b8bc-ea29b04ba3c7","type":"text/javascript","exec":[""]}}],"_postman_id":"a688eef8-c93e-42ef-a8ec-35165e5832fb","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"62451329-0f67-4b1e-804c-fc3dcd050997","id":"62451329-0f67-4b1e-804c-fc3dcd050997","name":"Webhooks","type":"folder"}}},{"name":"Line Referential","item":[{"name":"Create/Update Line","event":[{"listen":"prerequest","script":{"id":"56a539d9-2535-4b8d-9e36-146354719176","exec":["var xml = JSON.stringify(`<Line version=\"any\"","dataSourceRef=\"FR1:OrganisationalUnit::\"","created=\"2015-12-04T17:18:34Z\"","changed=\"2019-06-25T22:00:02Z\" status=\"active\"","id=\"webhook-2\">","  <ValidBetween>","    <FromDate>2015-12-04T00:00:00</FromDate>","    <ToDate>2020-02-01T00:00:00</ToDate>","  </ValidBetween>","  <Name>Ligne 3 : Boucle de Chevry</Name>","  <ShortName>Ligne 3 : Boucle de Chevry</ShortName>","  <TransportMode>bus</TransportMode>","  <TransportSubmode>","    <BusSubmode>demandAndResponseBus</BusSubmode>","  </TransportSubmode>","  <PublicCode></PublicCode>","  <PrivateCode>210677013</PrivateCode>","  <OperatorRef version=\"any\"","  ref=\"FR1:Operator:210:LOC\" />","  <additionalOperators>","    <OperatorRef version=\"any\"","    ref=\"FR1:Operator:210:LOC\" />","  </additionalOperators>","  <Presentation>","    <Colour>aaaaaa</Colour>","    <ColourName>RGB:170 170 170</ColourName>","    <TextColour>000000</TextColour>","  </Presentation>","  <AlternativePresentation>","    <ColourName>CMYK:0 0 0 33</ColourName>","    <TextColour>000000</TextColour>","  </AlternativePresentation>","  <AccessibilityAssessment id=\"FR1:AccessibilityAssessment:C01931:\"","  version=\"any\">","    <MobilityImpairedAccess>","    false</MobilityImpairedAccess>","    <limitations>","      <AccessibilityLimitation>","        <WheelchairAccess>unknown</WheelchairAccess>","        <AudibleSignalsAvailable>","        unknown</AudibleSignalsAvailable>","        <VisualSignsAvailable>","        unknown</VisualSignsAvailable>","      </AccessibilityLimitation>","    </limitations>","  </AccessibilityAssessment>","  <noticeAssignments>","    <NoticeAssignment id=\"FR1:NoticeAssignment:C01931:\"","    version=\"any\" order=\"0\">","      <NoticeRef version=\"any\"","      ref=\"FR1:Notice:C01931:\" />","    </NoticeAssignment>","  </noticeAssignments>","</Line>`);","postman.setEnvironmentVariable(\"xml\", xml);"],"type":"text/javascript"}}],"id":"d36b52c5-e5fe-46c0-9cac-94739b825a09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"updated\",\n  \"line\": {{xml}}\n}","options":{"raw":{"language":"json"}}},"url":"{{CHOUETTE_URL}}/api/v1/line_referentials/{{line_referential}}/webhook","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"62451329-0f67-4b1e-804c-fc3dcd050997","id":"62451329-0f67-4b1e-804c-fc3dcd050997","name":"Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","line_referentials","{{line_referential}}","webhook"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d36b52c5-e5fe-46c0-9cac-94739b825a09"},{"name":"Delete Line","event":[{"listen":"prerequest","script":{"id":"56a539d9-2535-4b8d-9e36-146354719176","exec":[""],"type":"text/javascript"}}],"id":"85063b6d-2cbb-41e7-ad7c-2d71866df5bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"destroyed\",\n  \"lines\": [{ \"id\": \"webhook-1\" }, {\"id\": \"webhook-2\"}]\n}","options":{"raw":{"language":"json"}}},"url":"{{CHOUETTE_URL}}/api/v1/line_referentials/{{line_referential}}/webhook","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"62451329-0f67-4b1e-804c-fc3dcd050997","id":"62451329-0f67-4b1e-804c-fc3dcd050997","name":"Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","line_referentials","{{line_referential}}","webhook"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"85063b6d-2cbb-41e7-ad7c-2d71866df5bb"},{"name":"Create/Update Company","event":[{"listen":"prerequest","script":{"id":"56a539d9-2535-4b8d-9e36-146354719176","exec":["var xml = JSON.stringify(`<operators>","  <Operator version=\"any\"","            dataSourceRef=\"FR1:OrganisationalUnit:IDFM:\"","            changed=\"2019-09-09T09:03:22Z\"","            id=\"webhook-1\">","              <BrandingRef ref=\"/uploads/logos/\" />","              <Name>MOBICITE</Name>","              <ContactDetails>","                <ContactPerson></ContactPerson>","                <Email></Email>","                <Phone>01 30 16 13 00</Phone>","                <Url></Url>","                <FurtherDetails></FurtherDetails>","              </ContactDetails>","              <Address>","                <HouseNumber>9</HouseNumber>","                <AddressLine1></AddressLine1>","                <Street>avenue Jean-Pierre Timbaud</Street>","                <Town>TRAPPES</Town>","                <PostCode>78190</PostCode>","                <PostCodeExtension></PostCodeExtension>","              </Address>","            </Operator>","    <Operator version=\"any\"","            dataSourceRef=\"FR1:OrganisationalUnit:IDFM:\"","            changed=\"2019-09-09T09:03:22Z\"","            id=\"webhook-2\">","              <BrandingRef ref=\"/uploads/logos/\" />","              <Name>MOBICITE</Name>","              <ContactDetails>","                <ContactPerson></ContactPerson>","                <Email></Email>","                <Phone>01 30 16 13 00</Phone>","                <Url></Url>","                <FurtherDetails></FurtherDetails>","              </ContactDetails>","              <Address>","                <HouseNumber>9</HouseNumber>","                <AddressLine1></AddressLine1>","                <Street>avenue Jean-Pierre Timbaud</Street>","                <Town>TRAPPES</Town>","                <PostCode>78190</PostCode>","                <PostCodeExtension></PostCodeExtension>","              </Address>","            </Operator>        ","</operators>`);","postman.setEnvironmentVariable(\"xml\", xml);"],"type":"text/javascript"}}],"id":"40f5a50e-9f70-47ba-bcca-2f21f4fcda38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"updated\",\n  \"operators\": {{xml}}\n}","options":{"raw":{"language":"json"}}},"url":"{{CHOUETTE_URL}}/api/v1/line_referentials/{{line_referential}}/webhook","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"62451329-0f67-4b1e-804c-fc3dcd050997","id":"62451329-0f67-4b1e-804c-fc3dcd050997","name":"Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","line_referentials","{{line_referential}}","webhook"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"40f5a50e-9f70-47ba-bcca-2f21f4fcda38"},{"name":"Delete Company","event":[{"listen":"prerequest","script":{"id":"56a539d9-2535-4b8d-9e36-146354719176","exec":[""],"type":"text/javascript"}}],"id":"a39dcf57-7f77-4534-b518-c824e4618595","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"destroyed\",\n  \"operators\": [{ \"id\": \"webhook-1\" }, {\"id\": \"webhook-2\"}]\n}","options":{"raw":{"language":"json"}}},"url":"{{CHOUETTE_URL}}/api/v1/line_referentials/{{line_referential}}/webhook","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"62451329-0f67-4b1e-804c-fc3dcd050997","id":"62451329-0f67-4b1e-804c-fc3dcd050997","name":"Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","line_referentials","{{line_referential}}","webhook"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a39dcf57-7f77-4534-b518-c824e4618595"},{"name":"Create/Update Network","event":[{"listen":"prerequest","script":{"id":"56a539d9-2535-4b8d-9e36-146354719176","exec":["var xml = JSON.stringify(`<networks>","  <Network version=\"any\" id=\"webhook-1\">","    <Name>TRAMWAY</Name>","  </Network>","  <Network version=\"any\" id=\"webhook-2\">","    <Name>VEXINBUS</Name>","  </Network>","</networks>`);","postman.setEnvironmentVariable(\"xml\", xml);"],"type":"text/javascript"}}],"id":"2ce1dfaa-217b-404b-93e7-6515da35888f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"updated\",\n  \"networks\": {{xml}}\n}","options":{"raw":{"language":"json"}}},"url":"{{CHOUETTE_URL}}/api/v1/line_referentials/{{line_referential}}/webhook","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"62451329-0f67-4b1e-804c-fc3dcd050997","id":"62451329-0f67-4b1e-804c-fc3dcd050997","name":"Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","line_referentials","{{line_referential}}","webhook"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ce1dfaa-217b-404b-93e7-6515da35888f"},{"name":"Delete Network","event":[{"listen":"prerequest","script":{"id":"56a539d9-2535-4b8d-9e36-146354719176","exec":[""],"type":"text/javascript"}}],"id":"4a2a01c7-905e-446f-8678-6d1d7db90b05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\": \"destroyed\",\n  \"networks\": [{ \"id\": \"webhook-1\" }, {\"id\": \"webhook-2\"}]\n}","options":{"raw":{"language":"json"}}},"url":"{{CHOUETTE_URL}}/api/v1/line_referentials/{{line_referential}}/webhook","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"62451329-0f67-4b1e-804c-fc3dcd050997","id":"62451329-0f67-4b1e-804c-fc3dcd050997","name":"Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","line_referentials","{{line_referential}}","webhook"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a2a01c7-905e-446f-8678-6d1d7db90b05"}],"id":"31815298-2be2-4ab6-8ca3-ed6a1c8e3789","description":"<p>When a resource is described by NeTEx XML, the NeTEx collection tag is:</p>\n<ul>\n<li>&lt;Line&gt; for the Line resource</li>\n<li>&lt;Operator&gt; for the Operator resource</li>\n<li>&lt;Network&gt; for the Network resource</li>\n</ul>\n<p>When several resources are described by the NeTEx XML, the associated NeTEx collection tag must be used to keep the XML document valid:</p>\n<ul>\n<li>&lt;lines&gt; for Line resources</li>\n<li>&lt;organizations&gt; for Operator resources</li>\n<li>&lt;networks&gt; for Network resources</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"b9497135-7995-4ce8-89ad-e6df806ca203","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1ccdb81c-36d6-406c-8454-a36635aa84a7","type":"text/javascript","exec":[""]}}],"_postman_id":"31815298-2be2-4ab6-8ca3-ed6a1c8e3789","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"62451329-0f67-4b1e-804c-fc3dcd050997","id":"62451329-0f67-4b1e-804c-fc3dcd050997","name":"Webhooks","type":"folder"}}}],"id":"62451329-0f67-4b1e-804c-fc3dcd050997","description":"<p>This API uses the authentication system for internal exchanges.</p>\n<h2 id=\"environment-variables\">Environment variables</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment variables</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CHOUETTE_URL</td>\n<td>Url of the Chouette platform <a href=\"https://chouette.enroute.mobi/\">https://chouette.enroute.mobi/</a></td>\n</tr>\n<tr>\n<td>api_key</td>\n<td>API key for internal exchanges</td>\n</tr>\n<tr>\n<td>line_referential</td>\n<td>line referential identifier</td>\n</tr>\n<tr>\n<td>stop_area_referential</td>\n<td>stop area referential identifier</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"1c613038-679b-463d-9687-905f909471b1","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bdfb2a86-40b1-4533-9b86-50099e4739a6","type":"text/javascript","exec":[""]}}],"_postman_id":"62451329-0f67-4b1e-804c-fc3dcd050997"},{"name":"Publication","item":[{"name":"Get GTFS file published","id":"f12415c7-5ab0-4fc7-9a96-0763b6c64558","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{publication_api_key}}"}]},"isInherited":false},"method":"GET","header":[{"name":"token","sortOrder":0,"infoTitle":"","info":"","allowedToToggle":true,"disableEdit":true,"key":"token","value":"{{publication_api_key}}","system":true,"auth":true,"type":"text"},{"name":"cache-control","sortOrder":2,"infoTitle":"We recommend using this header","info":"Postman added \"Cache-Control: no-cache\" as a precautionary measure to prevent the server from returning stale response when one makes repeated requests.\n\nYou can remove this header in the app settings or enter a new one with a different value.","allowedToToggle":false,"disableEdit":true,"previewSettingsLink":"Go to settings","key":"Cache-Control","value":"no-cache","system":true,"type":"text"},{"name":"postman-token","sortOrder":3,"infoTitle":"We recommend using this header","info":"The Postman-Token header appends a random UUID to every outgoing request. Postman adds this header for API developers to better debug requests sent and to ensure separate requests appear distinct to the receiving server.\n\nYou can remove this header in the app settings.","allowedToToggle":false,"disableEdit":true,"previewSettingsLink":"Go to settings","key":"Postman-Token","value":"<calculated when request is sent>","system":true,"type":"text"},{"name":"host","sortOrder":6,"infoTitle":"We recommend using this header","info":"The Host header is added to identify the domain name for which a request is being sent to the server. This header is implicitly sent by every HTTP client.\n\nYou can remove the header or enter a new one with a different value. It is most likely that without this header, your request will return an HTTP 400 error.","allowedToToggle":true,"disableEdit":true,"key":"Host","value":"<calculated when request is sent>","system":true,"type":"text"},{"name":"user-agent","sortOrder":7,"infoTitle":"We recommend using this header","info":"The User-Agent header is added to help the server identify Postman as the HTTP requesting application or client.\n\nIt is recommended that this header be sent, but you can remove the header or enter a new one with a different value.","allowedToToggle":true,"disableEdit":true,"key":"User-Agent","value":"PostmanRuntime/7.39.1","system":true,"type":"text"},{"name":"accept","sortOrder":8,"infoTitle":"We recommend using this header","info":"The \"Accept: */*\" header is added to tell the server that Postman can understand and process all forms of response content types.\n\nIt is recommended that this header be sent, but you can remove the header or enter a new one with a different value.","allowedToToggle":true,"disableEdit":true,"key":"Accept","value":"*/*","system":true,"type":"text"},{"name":"accept-encoding","sortOrder":9,"infoTitle":"We recommend using this header","info":"The Accept-Encoding header is added to indicate to the server that Postman HTTP client supports a defined list of content-encoding or compression algorithms as response.\n\nYou can remove the header or enter a new one with a different value. Doing that may not accurately render the response within the app.","allowedToToggle":true,"disableEdit":true,"key":"Accept-Encoding","value":"gzip, deflate, br","system":true,"type":"text"},{"name":"connection","sortOrder":10,"infoTitle":"We recommend using this header","info":"Postman added the Connection header to indicate the server to keep the underlying network connection open once the current response is received. This allows Postman to reuse the same connection for faster response times in subsequent requests to the same server.\n\nYou can remove this header or enter a new one with a different value, such as `Connection: Close` to control this behaviour.","allowedToToggle":true,"disableEdit":true,"key":"Connection","value":"keep-alive","system":true,"type":"text"}],"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/gtfs.zip","urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","gtfs.zip"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f12415c7-5ab0-4fc7-9a96-0763b6c64558"},{"name":"Get lines metadatas","id":"57ab17d6-c4a1-41e2-ba6a-ba689579a47e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/lines.json","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{publication_api_namespace}}"}]},"isInherited":true,"source":{"_postman_id":"6d39b553-f5df-4b39-91c2-ee384e55fbbd","id":"6d39b553-f5df-4b39-91c2-ee384e55fbbd","name":"Publication","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","lines.json"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"57ab17d6-c4a1-41e2-ba6a-ba689579a47e"},{"name":"Get document for a line","id":"85b597e8-8ddc-4d79-b615-cb6c89cceae1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/lines/{{line_id}}/documents/{{document_type}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{publication_api_namespace}}"}]},"isInherited":true,"source":{"_postman_id":"6d39b553-f5df-4b39-91c2-ee384e55fbbd","id":"6d39b553-f5df-4b39-91c2-ee384e55fbbd","name":"Publication","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","lines","{{line_id}}","documents","{{document_type}}"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"85b597e8-8ddc-4d79-b615-cb6c89cceae1"},{"name":"Get document for a stop area","id":"c59e9622-41f3-4b9d-86b8-a12731480515","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/stop_areas/{{stop_area_id}}/documents/{{document_type}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{publication_api_namespace}}"}]},"isInherited":true,"source":{"_postman_id":"6d39b553-f5df-4b39-91c2-ee384e55fbbd","id":"6d39b553-f5df-4b39-91c2-ee384e55fbbd","name":"Publication","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","stop_areas","{{stop_area_id}}","documents","{{document_type}}"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c59e9622-41f3-4b9d-86b8-a12731480515"},{"name":"Get document for a company","id":"32da74f8-f3cd-486a-8dbd-aa467b54b5df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/companies/{{company_id}}/documents/{{document_type}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{publication_api_namespace}}"}]},"isInherited":true,"source":{"_postman_id":"6d39b553-f5df-4b39-91c2-ee384e55fbbd","id":"6d39b553-f5df-4b39-91c2-ee384e55fbbd","name":"Publication","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","companies","{{company_id}}","documents","{{document_type}}"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"32da74f8-f3cd-486a-8dbd-aa467b54b5df"}],"id":"6d39b553-f5df-4b39-91c2-ee384e55fbbd","description":"<p>This API uses the authentication system for published datas.</p>\n<p>API requests to retrieve the published files return in the headers of the response:</p>\n<ul>\n<li>ETag: an identifier representing the version of a file accessible at a URL</li>\n<li>Last-Modified: Last modification date of the file accessible at a URL</li>\n</ul>\n<p>API requests can use 2 headers:</p>\n<ul>\n<li>HTTP_IF_NONE_MATCH: to transmit a unique content identifier (etag)</li>\n<li>HTTP_IF_MODIFIED_SINCE: to transmit the timestamp of the last modification of the content.</li>\n</ul>\n<p>If the browser makes a request with the content identifier (etag) or the last modification since the timestamp corresponding to the version of the server, then the server returns an empty response with an unmodified status with an HTTP code 304.</p>\n<h2 id=\"environment-variables\">Environment variables</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment variables</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CHOUETTE_URL</td>\n<td>Url of the Chouette platform <a href=\"https://chouette.enroute.mobi/\">https://chouette.enroute.mobi/</a></td>\n</tr>\n<tr>\n<td>publication_api_key</td>\n<td>API key for published data</td>\n</tr>\n<tr>\n<td>publication_api_namespace</td>\n<td>publishing API namespace</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{publication_api_namespace}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"b903c07b-f1b6-4965-9f9a-07444c384f70","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5e25b1c8-e6f9-4f4f-893d-427e5099c110","type":"text/javascript","exec":[""]}}],"_postman_id":"6d39b553-f5df-4b39-91c2-ee384e55fbbd"},{"name":"GraphQL","item":[{"name":"One Line","id":"825897bb-8379-42dd-9581-93a6b1aa448f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\n    # stopAreas and secondaryCompanies can be paginated. See \"Paginated StopAreas\" request for more details.\n    line(registrationNumber: \"10\") {\n        name\n        number\n        publishedName\n        transportMode\n        transportSubmode\n        comment\n        url\n        color\n        textColor\n        deactivated\n        activeFrom\n        activeUntil\n        seasonal\n        codes\n        network {\n            objectid\n            name\n        }\n        referent {\n            objectid\n            name\n        }\n        company {\n            objectid\n            name\n        }\n        secondaryCompanies {\n            nodes{\n                objectid\n                name\n            }\n        }\n        documents { \n          uuid\n          name\n          documentType\n          description\n          validityPeriod\n          createdAt\n          updatedAt\n        }\n        stopAreas {\n            nodes {\n                objectid\n                name\n            }\n        }\n        createdAt\n        updatedAt\n    }\n}","variables":""}},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"825897bb-8379-42dd-9581-93a6b1aa448f"},{"name":"One StopArea","id":"27c98551-3bf1-4400-be96-ad08faeefcb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\n    stopArea(registrationNumber: \"NOL210MA\") {\n        objectid\n        name\n        localizedNames\n        areaType\n        registrationNumber\n        longitude\n        latitude\n        country\n        streetName\n        zipCode\n        cityName\n        postalRegion\n        url\n        timeZone\n        waitingTime\n        kind\n        comment\n        status\n        codes\n        confirmedAt\n        deletedAt\n        isReferent\n        referent {\n            name\n            objectid\n        }\n        parent {\n            name\n            objectid\n        }\n        children { # children can be paginated\n            nodes {\n                objectid\n            }\n        }\n        lines {\n            nodes {\n                objectid\n                name\n            }\n        }\n        documents { \n          uuid\n          name\n          documentType\n          description\n          validityPeriod\n          createdAt\n          updatedAt\n        }\n        customFields\n        createdAt\n        updatedAt\n    }\n}","variables":""}},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"27c98551-3bf1-4400-be96-ad08faeefcb3"},{"name":"Paginated StopAreas","id":"9035f1f7-5059-4708-a238-ebe170ee6e17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\n    # the options supported are: first, last, after, before\n    # -for the two last options we need to input the offset found in endCursor\n    stopAreas {\n        nodes {\n            objectid\n            name\n        }\n        pageInfo {\n            endCursor\n            hasNextPage\n        }\n    }\n}","variables":""}},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9035f1f7-5059-4708-a238-ebe170ee6e17"},{"name":"Paginated Lines","id":"f1b7df72-19ae-4151-ba83-6a47824e0155","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\n    # the options supported are: first, last, after, before\n    # -for the two last options we need to input the offset found in endCursor\n    lines {\n        nodes {\n            objectid\n            name\n        }\n        pageInfo {\n            endCursor\n            hasNextPage\n        }\n    }\n}","variables":""}},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f1b7df72-19ae-4151-ba83-6a47824e0155"},{"name":"Lines -> StopAreas","id":"46e70b65-c385-48ee-a6b8-227fb227399c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\n    lines(companies: \"chouette:Company:590eb92b-ab78-4308-abc9-4f1dce59f576:LOC\") {\n        nodes {\n            objectid\n            name\n            company {\n                name\n            }\n            network {\n                name\n            }\n            stopAreas {\n                nodes {\n                    objectid\n                    name\n                    isReferent\n                    referent {\n                        parent {\n                            name\n                            objectid\n                            children {\n                                nodes {\n                                    name\n                                    objectid\n                                }\n                            }\n                        }\n                        name    \n                        objectid\n                    }\n                }\n            }\n        }\n    }\n}","variables":""}},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"46e70b65-c385-48ee-a6b8-227fb227399c"},{"name":"Lines -> Routes -> StopAreas","id":"a9c8aa46-a60d-4e7d-9204-329084550a4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\n  # lines and stopAreas can all be paginated. See \"Paginated StopAreas\" request for more details.\n  lines {\n    nodes {\n      objectid\n      name\n      routes {\n        nodes {\n          name\n          objectid\n          publishedName\n          wayback\n          stopAreas {\n              nodes {\n                  objectid\n                  name\n              }\n          }\n        }\n      }\n    }\n  }\n}","variables":""}},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a9c8aa46-a60d-4e7d-9204-329084550a4b"},{"name":"StopAreas -> Lines","id":"00f007fe-b27e-460c-97f8-c5d0306a629d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\n    stopAreas {\n        nodes {\n            objectid\n            name\n            lines {\n                nodes {\n                    objectid\n                    name\n                    transportMode\n                    color\n                    textColor\n                }\n            }\n        }\n    }\n}","variables":""}},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"00f007fe-b27e-460c-97f8-c5d0306a629d"},{"name":"Lines -> ServiceCounts","id":"26a00fae-5cd6-4e95-b865-e217a992c139","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\n    # the options supported are: first, last, after, before\n    # -for the two last options we need to input the offset found in endCursor\n    lines {\n        nodes {\n            objectid\n            name    \n            transportMode\n            serviceCount        \n        }                \n        \n        pageInfo {\n            endCursor\n            hasNextPage\n        }\n    }\n}","variables":""}},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"26a00fae-5cd6-4e95-b865-e217a992c139"},{"name":"Lines-> ServiceCount by date","id":"3b4940ff-0e33-4483-a48b-d44a0d4684d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    lines {\n        nodes {\n            objectid\n            name\n            serviceCounts {\n                nodes {\n                    date\n                    count                                        \n                }\n            }\n        }\n    }\n}"},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b4940ff-0e33-4483-a48b-d44a0d4684d7"},{"name":"Lines-> ServiceCount by date (Filters)","id":"bcd2bbb5-b8c5-4df4-8bb8-da889a405e44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    lines {\n        nodes {\n            objectid\n            name\n            serviceCounts(from: \"2021-01-01\", to: \"2021-01-31\") {\n                 edges {\n                    node {\n                        date\n                        count\n                    }\n                    cursor\n                }\n               \n                pageInfo {\n                    endCursor\n                    hasNextPage\n                }\n            }\n        }\n    }\n}"},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql","description":"<p>Get the total number of vehicle journeys by date with filter on dates.\nIt is possible to make different kind of search following the arguments of the request: </p>\n<ul>\n<li>from only : after that date</li>\n<li>to only : before that date</li>\n<li>from and to : between 2 dates</li>\n</ul>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bcd2bbb5-b8c5-4df4-8bb8-da889a405e44"},{"name":"Lines->Routes","id":"ca1b4acb-d7ac-4ca6-be91-62a393e7a330","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Token token={{publication_api_key}}"}],"body":{"mode":"graphql","graphql":{"query":"{\n    lines {\n        nodes {\n            objectid\n            name\n            routes {\n                nodes {\n                    name\n                    objectid\n                }\n            }\n        }\n    }\n}","variables":""}},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql?=","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[{"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"ca1b4acb-d7ac-4ca6-be91-62a393e7a330"},{"name":"Lines->Routes->StopPoints","id":"2dbff38f-038c-43e5-b9a9-df3e3ee1acfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Token token={{publication_api_key}}"}],"body":{"mode":"graphql","graphql":{"query":"{\n  # lines and stopAreas can all be paginated. See \"Paginated StopAreas\" request for more details.\n  lines {\n    nodes {\n      objectid\n      name\n      routes {\n        nodes {\n          name\n          objectid\n          publishedName\n          wayback\n          stopPoints {\n                nodes {\n                    position\n                    stopArea{\n                      name\n                      objectid\n                    }\n                }\n          }\n        }\n      }\n    }\n  }\n}","variables":""}},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2dbff38f-038c-43e5-b9a9-df3e3ee1acfe"},{"name":"Lines -> Documents","id":"7ba8170e-aae5-447d-bad9-7ad607b5a340","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token token={{publication_api_key}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"{\n    lines {\n         nodes {\n            name\n            number\n            publishedName\n            codes\n            documents { \n                    uuid\n                    name\n                    documentType\n                    description\n                    validityPeriod\n                    createdAt\n                    updatedAt\n                }\n            }\n    }\n}","variables":""}},"url":"{{CHOUETTE_URL}}/api/v1/datas/{{publication_api_namespace}}/graphql?=","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","name":"GraphQL","type":"folder"}},"urlObject":{"path":["api","v1","datas","{{publication_api_namespace}}","graphql"],"host":["{{CHOUETTE_URL}}"],"query":[{"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"7ba8170e-aae5-447d-bad9-7ad607b5a340"}],"id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da","description":"<p>This API uses the system of authentication for published datas</p>\n<h2 id=\"environment-variables\">Environment variables</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment variables</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CHOUETTE_URL</td>\n<td>Url of Chouette platform type <a href=\"https://chouette.enroute.mobi/\">https://chouette.enroute.mobi/</a></td>\n</tr>\n<tr>\n<td>publication_api_key</td>\n<td>API key for published datas</td>\n</tr>\n<tr>\n<td>publication_api_namespace</td>\n<td>short name of Publication API</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"models-used-in-api\">Models used in API</h2>\n<p>The following tables show in details the models used in API and accessible attributs :</p>\n<h3 id=\"stopareas\">StopAreas</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributs</th>\n<th>Comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td></td>\n</tr>\n<tr>\n<td>objectid</td>\n<td>business identifier NeTEx</td>\n</tr>\n<tr>\n<td>localizedNames</td>\n<td></td>\n</tr>\n<tr>\n<td>areaType</td>\n<td></td>\n</tr>\n<tr>\n<td>registrationNumber</td>\n<td></td>\n</tr>\n<tr>\n<td>longitude</td>\n<td></td>\n</tr>\n<tr>\n<td>latitude</td>\n<td></td>\n</tr>\n<tr>\n<td>country</td>\n<td></td>\n</tr>\n<tr>\n<td>streetName</td>\n<td></td>\n</tr>\n<tr>\n<td>zipCode</td>\n<td></td>\n</tr>\n<tr>\n<td>cityName</td>\n<td></td>\n</tr>\n<tr>\n<td>postalRegion</td>\n<td></td>\n</tr>\n<tr>\n<td>url</td>\n<td></td>\n</tr>\n<tr>\n<td>timeZone</td>\n<td></td>\n</tr>\n<tr>\n<td>waitingTime</td>\n<td></td>\n</tr>\n<tr>\n<td>kind</td>\n<td></td>\n</tr>\n<tr>\n<td>comment</td>\n<td></td>\n</tr>\n<tr>\n<td>status</td>\n<td></td>\n</tr>\n<tr>\n<td>confirmedAt</td>\n<td></td>\n</tr>\n<tr>\n<td>deletedAt</td>\n<td></td>\n</tr>\n<tr>\n<td>isReferent</td>\n<td></td>\n</tr>\n<tr>\n<td>referent</td>\n<td></td>\n</tr>\n<tr>\n<td>parent</td>\n<td></td>\n</tr>\n<tr>\n<td>children</td>\n<td></td>\n</tr>\n<tr>\n<td>lines</td>\n<td></td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td></td>\n</tr>\n<tr>\n<td>updatedAt</td>\n<td></td>\n</tr>\n<tr>\n<td>codes</td>\n<td></td>\n</tr>\n<tr>\n<td>customFields</td>\n<td></td>\n</tr>\n<tr>\n<td>accessibilities</td>\n<td>accessibility attribute on stop area</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"lines\">Lines</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributs</th>\n<th>Comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td></td>\n</tr>\n<tr>\n<td>objectid</td>\n<td>business identifier NeTEx</td>\n</tr>\n<tr>\n<td>registrationNumber</td>\n<td></td>\n</tr>\n<tr>\n<td>number</td>\n<td></td>\n</tr>\n<tr>\n<td>publishedName</td>\n<td></td>\n</tr>\n<tr>\n<td>transportMode</td>\n<td></td>\n</tr>\n<tr>\n<td>transportSubmode</td>\n<td></td>\n</tr>\n<tr>\n<td>comment</td>\n<td></td>\n</tr>\n<tr>\n<td>url</td>\n<td></td>\n</tr>\n<tr>\n<td>color</td>\n<td>line color</td>\n</tr>\n<tr>\n<td>textColor</td>\n<td>text color of line</td>\n</tr>\n<tr>\n<td>deactivated</td>\n<td></td>\n</tr>\n<tr>\n<td>activeFrom</td>\n<td></td>\n</tr>\n<tr>\n<td>activeUntil</td>\n<td></td>\n</tr>\n<tr>\n<td>seasonal</td>\n<td></td>\n</tr>\n<tr>\n<td>network</td>\n<td></td>\n</tr>\n<tr>\n<td>company</td>\n<td></td>\n</tr>\n<tr>\n<td>secondaryCompanies</td>\n<td></td>\n</tr>\n<tr>\n<td>stopAreas</td>\n<td></td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td></td>\n</tr>\n<tr>\n<td>updatedAt</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"company\">Company</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributs</th>\n<th>Comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td></td>\n</tr>\n<tr>\n<td>objectid</td>\n<td>business identifier NeTEx</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"network\">Network</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributs</th>\n<th>Comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td></td>\n</tr>\n<tr>\n<td>objectid</td>\n<td>business identifier NeTEx</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"route\">Route</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attributs</th>\n<th>Comments</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td></td>\n</tr>\n<tr>\n<td>objectid</td>\n<td>business identifier NeTEx</td>\n</tr>\n<tr>\n<td>wayback</td>\n<td></td>\n</tr>\n<tr>\n<td>publishedName</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"data-tree\">Data tree</h2>\n<p>Actually the datas are searchable on one of the following trees :</p>\n<ul>\n<li>Lines &gt; Routes &gt; StopAreas</li>\n<li>StopAreas &gt; Lines</li>\n</ul>\n<p>The call to intermediate models is optional (ex : Routes)</p>\n<h2 id=\"navigation-on-api-datas\">Navigation on API datas</h2>\n<p>By default the number of reassembled elements in different calls is 50 elements<br />Only the number of Lines and StopAreas reassembled on the first level is fixed on 500 elements</p>\n<p>To navigate in the paginated data, it will be necessary to consult the cursors in the response to access the next page.</p>\n<p>During the graphQL request, it is possible to get for the list of elements :</p>\n<ul>\n<li>first ones with keyword first</li>\n<li>last ones with keyword last</li>\n<li>after a cursor with the keyword after</li>\n</ul>\n<h2 id=\"research-of-datas\">Research of datas</h2>\n<h3 id=\"line\">Line</h3>\n<p>There's two ways to request lines. One line or multiple lines.</p>\n<p>When requesting one line, the research have 2 attributes:</p>\n<ul>\n<li>objectid</li>\n<li>registrationNumber</li>\n</ul>\n<p>example :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    line(objectid: \"test\", registrationNumber: \"test\"){\n        ...\n    }\n}\n\n</code></pre><p>When requesting multiple lines, the research have 2 attributes:</p>\n<ul>\n<li>transportMode : search by transport mode</li>\n<li>notTransportMode : search by excluding a transport mode</li>\n<li>transportModes : search by transport modes</li>\n<li>notTransportModes : search by excluding transport modes</li>\n<li>company : search by company</li>\n<li>notCompany : search by excluding a company</li>\n<li>companies : search by companies</li>\n<li>notCompanies : search by excluding companies</li>\n</ul>\n<p>transportMode values must be used without quotes and uses values :</p>\n<ul>\n<li>tram</li>\n<li>metro</li>\n<li>funicular</li>\n<li>bus</li>\n<li>rail</li>\n</ul>\n<p>Examples :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    lines(transportMode: bus){\n        ...\n    }\n}\n{\n    lines(transportModes: [bus, tram]){\n        ...\n    }\n}\n{\n    lines(notTransportMode: bus){\n        ...\n    }\n}\n{\n    lines(notTransportModes: [bus, tram]){\n        ...\n    }\n}\n\n</code></pre><p>Company search uses the company objectid.</p>\n<p>Examples :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    lines(company: \"chouette:Company:f9b1d751-6f88-4af6-96cf-a7aa426e1d32:LOC\"){\n        ...\n    }\n}\n{\n    lines(companies: [\"chouette:Company:f9b1d751-6f88-4af6-96cf-a7aa426e1d32:LOC\", \"chouette:Company:f9b2d751-6f18-4af7-96cf-a7aa426e1d32:LOC\"]){\n        ...\n    }\n}\n{\n    lines(notCompany: \"chouette:Company:f9b1d751-6f88-4af6-96cf-a7aa426e1d32:LOC\"){\n        ...\n    }\n}\n{\n    lines(notCompanies: [\"chouette:Company:f9b1d751-6f88-4af6-96cf-a7aa426e1d32:LOC\", \"chouette:Company:f9b2d751-6f18-4af7-96cf-a7aa426e1d32:LOC\"]){\n        ...\n    }\n}\n\n</code></pre><h3 id=\"stoparea\">StopArea</h3>\n<p>There's two ways to request stop areas. One stop area or multiple stop areas.</p>\n<p>When requesting one stop area, the research have 2 attributes:</p>\n<ul>\n<li>objectid</li>\n<li>registrationNumber</li>\n</ul>\n<p>example :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    stopArea(objectid: \"chouette:StopArea:5016c324-ca48-4911-aa0b-63d4285ea08b:LOC\", registrationNumber: \"test\"){\n        ...\n    }\n}\n\n</code></pre><p>When requesting multiple stop areas, the research doesn't have any attributes:</p>\n<p>example :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    stopAreas{\n        ...\n    }\n}\n\n</code></pre><p>When requesting accessibilities, the research must include the attribute needed:</p>\n<p>example :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  stopArea {\n      nodes {\n      accessibilities {\n          mobilityImpairedAccessibility\n          wheelChairAccessibility\n          liftFreeAccessibility\n          audibleSignalAvailability\n          accessibilityLimitationDescription\n      }\n  }\n}\n}\n\n</code></pre>","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"a582309c-f0e8-481e-9c47-98a0aa49b90b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"27586e8e-942c-4d03-8951-68191426143d","type":"text/javascript","exec":[""]}}],"_postman_id":"b8713f1e-630c-45bd-a2ad-2c443ae4b8da"}],"auth":{"type":"apikey","apikey":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"063c991f-356b-4f05-95e5-ad8538e7c348","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"b466c692-ab5f-420f-95d5-ae4daa2fc2ba","type":"text/javascript","requests":{},"exec":[""]}}]}