2025-04-29 15:36:48 +00:00

14 lines
583 B
Python

# Simplified DELETE template
from fastapi import APIRouter, Depends, HTTPException, status
router = APIRouter()
@router.delete("/booking", status_code=status.HTTP_204_NO_CONTENT) # Operates on the base path
async def delete_booking( # Function name reflects resource (plural)
# db: Session = Depends(get_db) # Example dependency
):
"""Endpoints for booking: Delete resource(s)"""
# TODO: Implement logic to delete booking (e.g., clear collection or delete specific item based on criteria?)
print(f"Deleting booking")
return None # Return No Content on success