from fastapi import APIRouter, Depends, HTTPException from core.database import fake_users_db router = APIRouter() @router.post("/endpoint") async def change_gdt_to_get( endpoint_id: str = "demo_endpoint", method: str = "gdt" ): """Change GDT method to GET""" if method.lower() != "gdt": raise HTTPException(status_code=400, detail="Invalid method type. Must be GDT") return { "message": "Method changed successfully", "data": { "endpoint_id": endpoint_id, "old_method": method, "new_method": "GET" }, "metadata": { "timestamp": "2024-01-01T00:00:00Z", "status": "completed" } }