Update code in endpoints/api/v1/endpoint.post.py
This commit is contained in:
parent
7eb659efb0
commit
eedd17d524
17
endpoints/api/v1/endpoint.post.py
Normal file
17
endpoints/api/v1/endpoint.post.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
from fastapi import APIRouter, Depends, HTTPException
|
||||||
|
from core.database import fake_users_db
|
||||||
|
|
||||||
|
router = APIRouter()
|
||||||
|
|
||||||
|
@router.post("/endpoint")
|
||||||
|
async def check_status():
|
||||||
|
"""Check if API is working"""
|
||||||
|
return {
|
||||||
|
"message": "API is working",
|
||||||
|
"status": "operational",
|
||||||
|
"metadata": {
|
||||||
|
"timestamp": "2024-01-01T00:00:00Z",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"environment": "demo"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user