A lot of changes related to person and membership and event
This commit is contained in:
@@ -269,3 +269,37 @@ async def get_event_person_obj(
|
||||
|
||||
return mk_resp(data=event_person_obj)
|
||||
# ### END ### API Event ### get_event_person_obj() ###
|
||||
|
||||
|
||||
# ### BEGIN ### API Event Person Methods ### get_person_event_person_obj_li() ###
|
||||
# Updated 2021-07-12
|
||||
@router.get('/person/{person_id}/event/person/list', response_model=Resp_Body_Base)
|
||||
async def get_person_event_person_obj_li(
|
||||
person_id: str = Query(..., min_length=1, max_length=22),
|
||||
enabled: str = 'enabled',
|
||||
limit: int = 1000,
|
||||
inc_address: bool = False,
|
||||
inc_contact: bool = False,
|
||||
# inc_event: bool = False,
|
||||
inc_event_abstract_list: bool = False,
|
||||
inc_event_badge: bool = False,
|
||||
inc_event_exhibit_list: bool = False,
|
||||
inc_event_file_list: bool = False,
|
||||
inc_event_presentation_list: bool = False,
|
||||
inc_event_presenter_list: bool = False,
|
||||
inc_event_registration: bool = False,
|
||||
inc_event_session_list: bool = False,
|
||||
inc_event_track_list: bool = False,
|
||||
inc_user: bool = False,
|
||||
x_account_id: str = Header(...),
|
||||
by_alias: Optional[bool] = True,
|
||||
exclude_unset: Optional[bool] = True,
|
||||
):
|
||||
log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
if person_id := redis_lookup_id_random(record_id_random=person_id, table_name='person'): pass
|
||||
else: return mk_resp(data=None, status_code=404)
|
||||
|
||||
return mk_resp(data=response_data)
|
||||
# ### BEGIN ### API Event Person Methods ### get_person_event_person_obj_li() ###
|
||||
|
||||
Reference in New Issue
Block a user