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 = APIRouter()
|
||||||
|
|
||||||
@router.post("/api/v1/endpoint")
|
@router.post("/api/v1/endpoint")
|
||||||
async def captain_marv_endpoint():
|
async def marv_endpoint():
|
||||||
"""Return Captain Marv appreciation message"""
|
"""Endpoint that returns Marv's status"""
|
||||||
return {
|
return {
|
||||||
"message": "Success",
|
"message": "Success",
|
||||||
"text": "captain marv is literally the best",
|
"data": "Marv is OP",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"source": "appreciation_service",
|
"source": "marv_status",
|
||||||
"timestamp": "now"
|
"timestamp": "now"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user