etalab / transpo-rt

Simple API for public transport realtime data
https://tr.transport.data.gouv.fr/
GNU Affero General Public License v3.0
21 stars 9 forks source link

Multi datasets #60

Closed antoine-de closed 5 years ago

antoine-de commented 5 years ago

enable the API to load multiple datasets

⚠️ this is a breaking API change ⚠️

now the Apis are nested in a /datasets/{id} path.

example: /datasets/metromobilite/siri-lite/stoppoints_discovery.json?q=mairie

it also adds /datasets route to have the list of the loaded datasets

The datasets are given in a yaml file. Our configuration is store in the depository for ease of use.

Note: we have to update clever cloud after merging this PR Note: I branched from #50 it would be better to merge it before (and review only the last commit)

antoine-de commented 5 years ago

superseeded by #63