diff --git a/endpoints/new-endpoint.put.py b/endpoints/new-endpoint.put.py index a8f6e95..52d4717 100644 --- a/endpoints/new-endpoint.put.py +++ b/endpoints/new-endpoint.put.py @@ -1 +1,13 @@ -hiii youuu \ No newline at end of file +from fastapi import APIRouter, Depends, HTTPException + +router = APIRouter() + +@router.put("/new-endpoint") +async def new_endpoint_handler(text: str): + """Echo the value of a text parameter""" + return { + "message": "Text echoed successfully", + "data": { + "text": text + } + } \ No newline at end of file