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

@@ -80,7 +80,7 @@ async def post_event_location_obj_new_v4(
@router.patch('/event/location/{event_location_id}/exist_v4', response_model=Resp_Body_Base)
async def patch_event_location_obj_exist_v4(
event_location_obj: Event_Location_Base,
event_location_id: str = Query(..., min_length=11, max_length=22),
event_location_id: str = Path(min_length=11, max_length=22),
create_sub_obj: bool = False,
fail_any: bool = True, # Fail if any thing goes wrong for sub objects
@@ -139,7 +139,7 @@ async def patch_event_location_obj_exist_v4(
# Updated 2022-09-23
@router.get('/event/location/{event_location_id}', response_model=Resp_Body_Base)
async def get_event_location_obj(
event_location_id: str = Query(..., min_length=11, max_length=22),
event_location_id: str = Path(min_length=11, max_length=22),
inc_event_device_list: bool = False,
inc_event_file_list: bool = False,
inc_event_file_internal_use_list: bool = False,
@@ -189,7 +189,7 @@ async def get_event_location_obj(
# Updated 2021-12-13
@router.get('/event/{event_id}/event/location/list', response_model=Resp_Body_Base)
async def get_event_obj_event_location_list(
event_id: str = Query(..., min_length=11, max_length=22),
event_id: str = Path(min_length=11, max_length=22),
enabled: str = 'enabled',
hidden: str = 'not_hidden',
limit: int = 500,