Update code in endpoints/api/test.post.py

This commit is contained in:
Backend IM Bot 2025-03-20 09:59:27 +00:00
parent 6c9fc540f0
commit 516bdd739f

View File

@ -0,0 +1,20 @@
from fastapi import APIRouter, Depends, HTTPException
from core.database import fake_users_db
router = APIRouter()
@router.post("/api/test")
async def test_handler():
"""Demo test endpoint"""
return {
"message": "Test successful",
"data": {
"input_length": 10,
"content": "AAAAAAAAAA..."
},
"metadata": {
"endpoint": "/api/test",
"method": "POST",
"timestamp": "demo_timestamp"
}
}