Working on event registration and related.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user