Lots of changes to get to FastAPI 95.1

This commit is contained in:
Scott Idem
2024-04-26 15:15:37 -04:00
parent f4eda34035
commit faecd974b9
38 changed files with 78 additions and 79 deletions

View File

@@ -238,7 +238,7 @@ async def event_file_lookup(
# Updated 2021-11-23
@router.get('/event/file/{event_file_id}/download', response_model=Resp_Body_Base)
async def download_event_file(
event_file_id: str = Query(..., min_length=11, max_length=22),
event_file_id: str = Path(min_length=11, max_length=22),
filename: str = Query(None, min_length=4, max_length=100),
streaming: bool = False,
@@ -393,7 +393,7 @@ async def delete_event_file_obj(
# Updated 2022-08-18
@router.delete('/event/file/{event_file_id}/v2', response_model=Resp_Body_Base)
async def delete_event_file_obj_v2(
event_file_id: str = Query(..., min_length=11, max_length=22),
event_file_id: str = Path(min_length=11, max_length=22),
delete_hosted_file: bool = False, # Not currently used
rm_orphan: bool = False,