highlife-gtjd6f/endpoints/api/v1/endpoint.post.py
2025-03-18 06:48:26 +00:00

21 lines
516 B
Python

from fastapi import APIRouter, Depends, HTTPException
from core.database import fake_users_db
router = APIRouter()
@router.post("/api/v1/endpoint")
async def endpoint_handler(
message: str = "Hello"
):
"""Demo greeting endpoint"""
return {
"message": "Greeting received successfully",
"data": {
"greeting": message,
"timestamp": "2024-01-01T00:00:00Z"
},
"metadata": {
"status": "success",
"version": "1.0"
}
}