Update code in endpoints/api/test.post.py
This commit is contained in:
parent
6c9fc540f0
commit
516bdd739f
20
endpoints/api/test.post.py
Normal file
20
endpoints/api/test.post.py
Normal 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"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user