Notes sur la migration
Bienvenue dans notre guide sur la migration des notes pour une API REST
Introduction
Cette page a pour but d'aider les développeurs à comprendre le processus de transfert, de mise à jour et de gestion des notes dans une architecture REST.
Que vous cherchiez à mettre à niveau votre API existante, à modifier les systèmes backend ou simplement à réorganiser votre structure de données, ce guide fournit des instructions complètes et les meilleures pratiques pour garantir une migration fluide et efficace. Notre objectif est de vous fournir les connaissances et les outils nécessaires pour gérer cet aspect crucial de la maintenance de l'API de manière transparente.
À propos des changements importants
L'API REST Club Med est versionnée. La version est reflétée sur chaque route de /v0 à vN.
Par exemple, notre route principale d'informations sur les produits existe dans /v0/products et /v1/products, mais notre documentation swagger
n'affiche que la dernière version de l'API (par défaut).
Nous ne créons pas de version globale pour toutes les routes, chaque route a sa propre version.
Tout changement important sera publié dans une nouvelle version de l'API. Les changements importants sont des changements qui peuvent potentiellement casser une intégration. Les changements importants comprennent :
- la suppression d'une opération entière
- la suppression ou le renommage d'un paramètre
- la suppression ou le renommage d'un champ de réponse
- l'ajout d'un nouveau paramètre obligatoire
- le fait de rendre obligatoire un paramètre auparavant facultatif
- la modification du type d'un paramètre ou d'un champ de réponse
- la suppression de valeurs enum
- l'ajout d'une nouvelle règle de validation à un paramètre existant
- la modification des exigences d'authentification ou d'autorisation
Tout changement additif (non destructif) sera disponible dans toutes les versions d'API prises en charge. Les changements additifs sont des changements qui ne devraient pas casser une intégration. Les changements additifs comprennent :
- l'ajout d'une opération
- l'ajout d'un paramètre facultatif
- l'ajout d'un en-tête de requête facultatif
- l'ajout d'un champ de réponse
- l'ajout d'un en-tête de réponse
- l'ajout de valeurs enum
Lorsqu'une nouvelle version de l'API REST est publiée, la version précédente de l'API sera prise en charge pendant au moins 6 mois après la publication de la nouvelle version d'une route.
Changements importants
Voici les routes qui seront supprimées à l'avenir. Veuillez vous assurer de mettre à jour votre code en conséquence.
WARNING
Nous avons deux états pour les changements importants : deprecated et outdated.
- L'état
deprecatedsignifie que la route sera supprimée à l'avenir (6 mois). Seules les corrections de bugs critiques seront appliquées à la route. - L'état
removedsignifie que la route est consommée par l'un de nos consommateurs. La route n'est donc pas encore supprimée, mais elle le sera lorsque cela sera possible. Dans ce cas, la route n'est plus maintenue.
Routes dépréciées
Les notes de migration suivantes concernent des routes marquées comme dépréciées et qui seront supprimées de l'API Club Med dans environ 6 mois. Veuillez migrer vers les alternatives recommandées dès que possible.
Routes obsolètes
Les routes suivantes étaient auparavant dépréciées et ont désormais atteint leur fin de support. Elles ont été supprimées ou le seront bientôt de l'API Club Med. Assurez-vous d'avoir migré vers les alternatives recommandées.
- Impact de la migration de la route GET /v1/products/{product_id}/pictures21 décembre 2023
- Migration of the endpoint PUT /v2/proposals/{proposal_id}/attendees to PUT /v3/proposals/{proposal_id}/attendees22 octobre 2025
- Migration of the route GET /v1/products/{product_id}/thematics to GET /v2/products/{product_id}/thematics4 août 2025
- Upgrade from GET /v1/products/{product_id}/facilities to GET /v2/products/{product_id}/facilities27 janvier 2024
- Migration of the route POST /v3/proposals/{proposal_id}/transport_details to POST /v4/proposals/{proposal_id}/transport_details1 juin 2025
- Upgrade from GET /v0/transport_stations to GET /v1/transport_stations22 mai 2024
- Impact migration of the route GET /v1/schemas/{resource}/{localeOrCountry} to GET /v2/schemas/{resource}/{localeOrCountry}30 octobre 2024
- Impact migration of the route POST /v2/proposals/{proposal_id}/transport_details to POST /v3/proposals/{proposal_id}/transport_details20 octobre 2024
- Impacts migration de la route POST /v1/proposals/{proposal_id}/accommodations_arrangement/search1 mai 2022
- Impact depreciation of the route GET /v0/cities/{city_id}5 février 2023
- Impact Migration of POST/v2/proposals/{proposal_id}/alternative_transports to POST /v0/proposals/{proposal_id}/available_transports1 mai 2025
- Depreciation of the route GET /v1/products/{product_id}/bars1 janvier 2024
- Upgrade from GET /v0/proposals/{proposal_id}/accommodations_arrangement to GET /v1/proposals/{proposal_id}/accommodations_arrangement30 avril 2024
- Migration of the route GET /v0/products/{product_id}/bookable_dates to GET /v1/products/{product_id}/bookable_dates10 juin 2025
- Migration of the route GET /v2/schemas/{resource}/{localeOrCountry} to GET /v3/schemas/{resource}/{localeOrCountry}30 mai 2025
- Migration of the endpoint POST /v4/proposals/{proposal_id}/transport_details to POST /v5/proposals/{proposal_id}/transport_details15 novembre 2025
- Impact Migration of POST/v0/accommodations_arrangement/search to POST /v1/accommodations_arrangement/search9 mars 2025
- Impacts migration de la route GET /v1/customers/{customer_id}/bookings1 septembre 2021
- Upgrade from PUT /v0/proposals/{proposal_id}/accommodations_arrangement to PUT /v1/proposals/{proposal_id}/accommodations_arrangement1 juin 2024
- Impact Migration of the endpoint v0/offers to v1/offers2 janvier 2025
- Migration of the route GET /v1/products/{product_id} to GET /v2/products/{product_id}1 juin 2025
- Upgrade from PUT /v1/proposals/{proposal_id}/attendees to PUT /v2/proposals/{proposal_id}/attendees1 juin 2024
- Impact migration of the route GET /v1/proposals/{proposal_id}/transport_details16 septembre 2023
- Upgrade from GET /v1/bookings to GET /v2/bookings3 mai 2024
- Migration of the route GET /v1/products/{product_id}/calendar to GET /v2/products/{product_id}/calendar10 juin 2025
- Migration of the route GET /v3/customers/{customer_id}/bookings/{booking_id}/transport_details to GET /v4/customers/{customer_id}/bookings/{booking_id}/transport_details1 juin 2025
- Migration of the endpoint GET /v4/proposals/{proposal_id}/transport_details to GET /v5/proposals/{proposal_id}/transport_details15 novembre 2025
- Impacts migration of the route GET /v0/customers/{customer_id}/commercial_offers10 novembre 2023
- Impacts migration de la route GET /v1/products/{product_id}/accommodations/{accommodation_id}5 juillet 2022
- Migration of the route GET /v1/products/ to GET /v2/products/1 juin 2025
- Impact migration of the route GET /v0/offers/{offer_id}5 juin 2023
- Impact migration of the route POST /v2/bookings11 octobre 2023
- Impact migration of the route PATCH /v0/customers/{customer_id}/profile11 octobre 2023
- Impacts migration de la route GET /v1/products/{product_id}/activities15 août 2022
- Migration of the endpoint POST /v0/subscriptions to POST /v1/subscriptions1 septembre 2025
- Impacts migration de la route GET /v1/products/{product_id}/accommodations5 juillet 2022
- Impact migration of the route GET /v2/proposals/{proposal_id}/transport_details to GET /v3/proposals/{proposal_id}/transport_details20 octobre 2024
- Depreciation of the route GET /v1/products/{product_id}/restaurants1 janvier 2024
- Impact Migration of the route POST /v1/proposals/{proposal_id}/alternative_transports8 janvier 2025
- Impact migration of the route POST /v1/proposals/{proposal_id}/transport_details16 septembre 2023
- Migration of the route GET /v2/bookings/{booking_id}/transport_details to GET /v3/bookings/{booking_id}/transport_details1 juin 2025
- Migration of the route POST /v0/proposals/{proposal_id}/available_transports to POST /v1/proposals/{proposal_id}/available_transports1 juin 2025
- Impact migration of the route GET /v0/products/{product_id}/thematics15 juin 2024
- Impact migration of the route GET /v1/customers/{customer_id}/profile24 décembre 2024
- Migration of the route GET /v1/customers/{customer_id}/bookings/{booking_id}/services16 mai 2024
- Impact migration of the route GET /v0/customers1 juin 2023
- Impacts migration of the route GET /v0/customers/{customer_id}/travel_documents20 janvier 2023
- Impact migration of the route DELETE /v0/customers/{customer_id}/proposals/{proposal_id} to DELETE /v0/proposals/{proposal_id}30 septembre 2024
- Migration of the endpoint POST /v0/wifi_access_request to POST /v1/wifi_access_request1 août 2025
- Migration of the endpoint PATCH /v0/subscriptions/{subscription_id} to PATCH /v1/subscriptions/{subscription_id}1 septembre 2025
- Migration of the endpoint POST /v0/proposals/search/best to POST /v1/proposals/search/best5 décembre 2025
- Upgrade GET/v2/customers/{customer_id}/bookings/{booking_id}/transport_details to GET/v3/customers/{customer_id}/bookings/{booking_id}/transport_details25 juin 2024
- Evolution of GET /v0/products/{product_id}/must_try_experiences in GET v0/products/{product_id}/highlights30 avril 2024
- Impact migration of the route GET /v0/bookings/{booking_id}15 septembre 2023
- Migration of the route GET /v3/proposals/{proposal_id}/transport_details to the route GET /v4/proposals/{proposal_id}/transport_details1 juin 2025
- Impacts migration de la route GET /v0/products/{product_id}/childcare22 septembre 2022
- Impact migration of the route POST /v0/proposals/{proposal_id}/alternative_transports16 septembre 2023
- Impact migration of the route GET /v2/customers/{customer_id}/bookings/{booking_id}10 août 2023
- Impact Migration of the route GET /v0/products/{product_id}/periods_info25 février 2024
- Impact migration of the route GET v0/customers/{customer_id}/travelers30 juin 2023
- Impact migration of the route GET /v0/customers/{customer_id}/profile11 octobre 2023
Besoin d'aide pour la migration ?
Notre équipe de support développeur est là pour vous aider tout au long du processus de migration.