Slow but steady progress to update all end points...

This commit is contained in:
Scott Idem
2024-04-26 14:17:46 -04:00
parent d3f26f1696
commit b37f14d25c
5 changed files with 26 additions and 26 deletions

View File

@@ -241,7 +241,7 @@ async def post_api_obj(
@router.patch('/{obj_id}', response_model=Resp_Body_Base)
async def patch_api_obj(
obj_id: str = Query(..., min_length=1, max_length=22),
obj_id: str,
obj: Api_Base = None,
x_account_id: Optional[str] = Header(..., ),
return_obj: Optional[bool] = True,
@@ -292,7 +292,7 @@ async def get_api_obj_li(
@router.get('/{obj_id}', response_model=Resp_Body_Base)
async def get_api_obj(
obj_id: str = Query(..., min_length=1, max_length=22),
obj_id: str,
x_account_id: str = Header(...),
by_alias: Optional[bool] = True,
exclude_unset: Optional[bool] = True,
@@ -313,7 +313,7 @@ async def get_api_obj(
@router.delete('/{obj_id}', response_model=Resp_Body_Base)
async def delete_api_obj(
obj_id: str = Query(..., min_length=11, max_length=22),
obj_id: str,
x_account_id: str = Header(...),
response: Response = Response,
):
@@ -330,8 +330,8 @@ async def delete_api_obj(
@router.get('/get_id/{object_type}/{object_id_random}', response_model=Resp_Body_Base)
async def get_api_object_id(
object_type: str = Query(..., min_length=1, max_length=50),
object_id_random: str = Query(..., min_length=1, max_length=22),
object_type: str,
object_id_random: str,
x_account_id: str = Header(...),
by_alias: Optional[bool] = True,
exclude_unset: Optional[bool] = True,