From 7d2d068e1e7ed0de3d4198a58c59eadef09ebbf7 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sun, 23 Mar 2025 08:29:44 +0000 Subject: [PATCH] Update code in endpoints/france.post.py --- endpoints/france.post.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/endpoints/france.post.py b/endpoints/france.post.py index e69de29..a921918 100644 --- a/endpoints/france.post.py +++ b/endpoints/france.post.py @@ -0,0 +1,31 @@ +from fastapi import APIRouter + +router = APIRouter() + +states = [ + "Auvergne-Rhône-Alpes", + "Bourgogne-Franche-Comté", + "Bretagne", + "Centre-Val de Loire", + "Corse", + "Grand Est", + "Hauts-de-France", + "Île-de-France", + "Normandie", + "Nouvelle-Aquitaine", + "Occitanie", + "Pays de la Loire", + "Provence-Alpes-Côte d'Azur" +] + +@router.post("/france") +async def get_france_states(): + """Return list of states in France""" + return { + "message": "States retrieved successfully", + "states": states, + "features": { + "total_states": len(states), + "country": "France" + } + } \ No newline at end of file