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