Saving current progress with change from using Query() to Path()
This commit is contained in:
@@ -97,7 +97,7 @@ async def get_activity_log_obj_li(
|
||||
|
||||
@router.get('/activity_log/{obj_id}', response_model=Resp_Body_Base)
|
||||
async def get_activity_log_obj(
|
||||
obj_id: str = Query(..., min_length=1, max_length=22),
|
||||
obj_id: str = Path(min_length=1, max_length=22),
|
||||
x_account_id: str = Header(...),
|
||||
by_alias: Optional[bool] = True,
|
||||
exclude_unset: Optional[bool] = True,
|
||||
@@ -120,7 +120,7 @@ async def get_activity_log_obj(
|
||||
# Updated 2021-09-21
|
||||
@router.get('/account/{account_id}/activity_log/list', response_model=Resp_Body_Base)
|
||||
async def get_account_obj_activity_log_list(
|
||||
account_id: str = Query(..., min_length=11, max_length=22),
|
||||
account_id: str = Path(min_length=11, max_length=22),
|
||||
limit: int = 500, # For now this covers any included objects or object lists
|
||||
enabled: str = 'enabled', # For now this covers any included objects or object lists
|
||||
x_account_id: str = Header(...),
|
||||
@@ -167,7 +167,7 @@ async def get_account_obj_activity_log_list(
|
||||
|
||||
@router.delete('/activity_log/{obj_id}', response_model=Resp_Body_Base)
|
||||
async def delete_activity_log_obj(
|
||||
obj_id: str = Query(..., min_length=1, max_length=22),
|
||||
obj_id: str = Path(min_length=1, max_length=22),
|
||||
x_account_id: str = Header(...),
|
||||
response: Response = Response,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user