Impact depreciation of the route GET /v0/cities/{city_id}

  • Obsolète
  • 5 février 2023
  • 1 route liée

Context

Upgrade from GET - /v0/cities/{city_id} to GET - /v0/transport_stations

Key benefits : Give the ability to retrieve all transport stations


As dev BE B2B I want to retrieve all airports, train stations and ports In order to create a booking with transport for a GM


Impacts

Inputs 1- GET /v0/cities/{city_id} was: image

2- GET /v0/transport_stations became: Paramètres

- accept-language*
- api_key*
- filter

Outputs 1- GET /v0/cities/{city_id} was: image

2- GET /v0/transport_stations became:

[
  {
    "id": "CDG",
    "city_id": "PAR",
    "type": "AIRPORT",
    "label": "Paris-Roissy Charles de Gaulle",
    "is_main_city_station": true
  },
  {
    "id": "GDN",
    "city_id": "PAR",
    "type": "TRAIN_STATION",
    "label": "Gare du nord",
    "is_main_city_station": true
  },
  {
    "id": "LHV",
    "city_id": "HAV",
    "type": "PORT",
    "label": "Le Havre",
    "is_main_city_station": true
  }
]