Working on event registration and related.

This commit is contained in:
Scott Idem
2021-08-17 20:53:01 -04:00
parent 2f037290d9
commit ad9417911a
11 changed files with 294 additions and 35 deletions

View File

@@ -100,8 +100,11 @@ async def get_event_registration_obj(
event_registration_id: str = Query(..., min_length=1, max_length=22),
enabled: str = 'enabled', # For now this covers any included objects or object lists
limit: int = 500, # For now this covers any included objects or object lists
# inc_event_cfg: bool = False,
inc_event_person_list: bool = False,
inc_event_registration_cfg: bool = False,
inc_event_registration_list: bool = False,
# inc_event_registration_list: bool = False,
inc_person: bool = False,
x_account_id: str = Header(...),
by_alias: Optional[bool] = True,
exclude_unset: Optional[bool] = True,
@@ -115,6 +118,10 @@ async def get_event_registration_obj(
if event_registration_obj := load_event_registration_obj(
event_registration_id = event_registration_id,
inc_event_person_list = inc_event_person_list,
inc_event_registration_cfg = inc_event_registration_cfg,
# inc_event_registration_list = inc_event_registration_list,
inc_person = inc_person,
limit = limit,
by_alias = by_alias,
exclude_unset = exclude_unset,
@@ -127,15 +134,6 @@ async def get_event_registration_obj(
return mk_resp(data=event_registration_obj)
# obj_type = 'event_registration'
# result = get_obj_template(
# obj_type=obj_type,
# obj_id=event_registration_id,
# by_alias=True,
# exclude_unset=True,
# )
# return result
@router.delete('/{obj_id}', response_model=Resp_Body_Base)
async def delete_event_registration_obj(