Update code in endpoints/api/v1/endpoint.post.py
This commit is contained in:
parent
f3a01a2c0b
commit
b35ad0e188
@ -4,13 +4,13 @@ from core.database import fake_users_db
|
||||
router = APIRouter()
|
||||
|
||||
@router.post("/api/v1/endpoint")
|
||||
async def captain_marv_endpoint():
|
||||
"""Return Captain Marv appreciation message"""
|
||||
async def marv_endpoint():
|
||||
"""Endpoint that returns Marv's status"""
|
||||
return {
|
||||
"message": "Success",
|
||||
"text": "captain marv is literally the best",
|
||||
"data": "Marv is OP",
|
||||
"metadata": {
|
||||
"source": "appreciation_service",
|
||||
"source": "marv_status",
|
||||
"timestamp": "now"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user