diff --git a/endpoints/turkey.post.py b/endpoints/turkey.post.py index e69de29..2a7b118 100644 --- a/endpoints/turkey.post.py +++ b/endpoints/turkey.post.py @@ -0,0 +1,31 @@ +from fastapi import APIRouter, HTTPException + +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 = APIRouter() + +@router.post("/france") +async def get_france_states(): + """Return list of states in France""" + return { + "message": "States retrieved successfully", + "states": states, + "features": { + "total_count": len(states), + "last_updated": "2023" + } + } \ No newline at end of file