Moving things to use the common_route_params

This commit is contained in:
Scott Idem
2022-01-18 14:12:33 -05:00
parent 15c1d6b463
commit b2a1c8f85a
2 changed files with 14 additions and 17 deletions

View File

@@ -357,7 +357,8 @@ async def patch_person_obj(
@router.get('/person/list', response_model=Resp_Body_Base)
async def get_person_obj_li(
for_obj_type: Optional[str] = Query(None, min_length=2, max_length=50),
for_obj_id: Optional[str] = Query(None, min_length=1, max_length=22),
for_obj_id: Optional[str] = Query(None, min_length=11, max_length=22),
commons: Common_Route_Params = Depends(common_route_params),
):
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL