Lots of changes to get to FastAPI 95.1
This commit is contained in:
@@ -89,7 +89,7 @@ async def post_person_obj(
|
||||
@router.patch('/person/{person_id}', response_model=Resp_Body_Base)
|
||||
async def patch_person_obj(
|
||||
person_obj: Person_Base,
|
||||
person_id: str = Query(..., min_length=11, max_length=22),
|
||||
person_id: str = Path(min_length=11, max_length=22),
|
||||
contact_id: str = Query(None, min_length=11, max_length=22),
|
||||
organization_id: str = Query(None, min_length=11, max_length=22),
|
||||
user_id: str = Query(None, min_length=11, max_length=22),
|
||||
@@ -278,7 +278,7 @@ async def lookup_email(
|
||||
# Updated 2021-12-03
|
||||
@router.get('/person/{person_id}/email_auth_key_url', response_model=Resp_Body_Base)
|
||||
async def email_auth_key_url(
|
||||
person_id: str = Query(..., min_length=11, max_length=22),
|
||||
person_id: str = Path(min_length=11, max_length=22),
|
||||
root_url: Optional[str] = Query(None, min_length=10, max_length=100), # Absolute min = 7
|
||||
commons: Common_Route_Params = Depends(common_route_params),
|
||||
):
|
||||
@@ -307,7 +307,7 @@ async def email_auth_key_url(
|
||||
# Updated 2021-12-15
|
||||
@router.get('/person/{person_id}', response_model=Resp_Body_Base)
|
||||
async def get_person_obj(
|
||||
person_id: str = Query(..., min_length=11, max_length=22),
|
||||
person_id: str = Path(min_length=11, max_length=22),
|
||||
auth_key: str = Query(None, min_length=11, max_length=22), # If passed, it must match in the person record. New 2021-12-15
|
||||
inc_address: bool = False, # Priority l1
|
||||
# inc_archive_list: bool = False, # Priority l3
|
||||
@@ -395,7 +395,7 @@ async def get_person_obj(
|
||||
# Updated 2022-01-05
|
||||
@router.get('/account/{account_id}/person/list', response_model=Resp_Body_Base)
|
||||
async def get_account_obj_person_list(
|
||||
account_id: str = Query(..., min_length=11, max_length=22),
|
||||
account_id: str = Path(min_length=11, max_length=22),
|
||||
|
||||
inc_address: bool = False,
|
||||
inc_contact: bool = False,
|
||||
|
||||
Reference in New Issue
Block a user