We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3013e6 commit d5697ffCopy full SHA for d5697ff
todo-app/lambda_function/lambda.py
@@ -124,7 +124,7 @@ async def update_todo(id: str, request: UpdateTodoRequest):
124
125
126
# Delete a todo item in the DynamoDB table (using only `id` as the partition key)
127
-@app.delete("/todos/{id}", status_code=204)
+@app.delete("/todos/{id}", status_code=200)
128
async def delete_todo(id: str):
129
try:
130
# Attempt to delete the item using only the partition key (`id`)
@@ -146,7 +146,6 @@ async def delete_todo(id: str):
146
logging.error(f"Unexpected error deleting todo with id {id}: {e}")
147
raise HTTPException(status_code=500, detail="Error deleting todo")
148
149
-
150
@app.get("/health")
151
async def health():
152
0 commit comments