Working on event (meet) and related updates
This commit is contained in:
@@ -140,6 +140,7 @@ async def get_event_obj_li(
|
||||
limit: int = None,
|
||||
inc_event_abstract_list: bool = False,
|
||||
inc_event_badge_list: bool = False,
|
||||
inc_event_cfg: bool = False,
|
||||
inc_event_device_list: bool = False,
|
||||
inc_event_exhibit_list: bool = False,
|
||||
inc_event_file_list: bool = False,
|
||||
@@ -147,11 +148,10 @@ async def get_event_obj_li(
|
||||
inc_event_person_list: bool = False,
|
||||
inc_event_presentation_list: bool = False,
|
||||
inc_event_presenter_list: bool = False,
|
||||
inc_event_registration_cfg: bool = False,
|
||||
inc_event_registration_list: bool = False,
|
||||
inc_event_session_list: bool = False,
|
||||
inc_event_track_list: bool = False,
|
||||
inc_event_cfg: bool = False,
|
||||
inc_event_registration_cfg: bool = False,
|
||||
inc_poc_event_person: bool = False,
|
||||
inc_poc_person: bool = False,
|
||||
inc_user: bool = False,
|
||||
@@ -250,17 +250,21 @@ async def get_event_obj_li(
|
||||
|
||||
|
||||
# ### BEGIN ### API Event ### get_event_obj() ###
|
||||
# Working well as of 2021-06-04. Using as a template for other routes.
|
||||
# Working well as of 2021-06-30. Using as a template for other routes.
|
||||
@router.get('/{event_id}', response_model=Resp_Body_Base)
|
||||
async def get_event_obj(
|
||||
event_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_contact_1: bool = False,
|
||||
inc_contact_2: bool = False,
|
||||
inc_contact_3: bool = False,
|
||||
inc_address: bool = False, # Under event and under contact
|
||||
# inc_address_location: bool = False,
|
||||
inc_contact: bool = False,
|
||||
# inc_contact_1: bool = False,
|
||||
# inc_contact_2: bool = False,
|
||||
# inc_contact_3: bool = False,
|
||||
inc_event_abstract_list: bool = False,
|
||||
inc_event_badge_list: bool = False,
|
||||
inc_event_cfg: bool = False,
|
||||
inc_event_device_list: bool = False,
|
||||
inc_event_exhibit_list: bool = False,
|
||||
inc_event_file_list: bool = False,
|
||||
@@ -270,14 +274,17 @@ async def get_event_obj(
|
||||
inc_event_presentation_list: bool = False,
|
||||
inc_event_presenter_cat: bool = False,
|
||||
inc_event_presenter_list: bool = False,
|
||||
inc_event_registration_cfg: bool = False,
|
||||
inc_event_registration_list: bool = False,
|
||||
inc_event_session_list: bool = False,
|
||||
inc_event_track: bool = False,
|
||||
inc_event_track_list: bool = False,
|
||||
inc_event_cfg: bool = False,
|
||||
inc_event_registration_cfg: bool = False,
|
||||
inc_location_address: bool = False,
|
||||
inc_organization: bool = False,
|
||||
inc_person: bool = False,
|
||||
inc_poc_event_person: bool = False,
|
||||
inc_product: bool = False,
|
||||
inc_product_list: bool = False,
|
||||
inc_user: bool = False,
|
||||
x_account_id: str = Header(...),
|
||||
by_alias: Optional[bool] = True,
|
||||
exclude_unset: Optional[bool] = True,
|
||||
@@ -291,30 +298,39 @@ async def get_event_obj(
|
||||
|
||||
if event_obj := load_event_obj(
|
||||
event_id = event_id,
|
||||
enabled = enabled,
|
||||
limit = limit,
|
||||
inc_contact_1 = inc_contact_1,
|
||||
inc_contact_2 = inc_contact_2,
|
||||
inc_contact_3 = inc_contact_3,
|
||||
inc_event_abstract_list = inc_event_abstract_list,
|
||||
inc_event_badge_list = inc_event_badge_list,
|
||||
inc_event_device_list = inc_event_device_list,
|
||||
inc_event_exhibit_list = inc_event_exhibit_list,
|
||||
by_alias = by_alias,
|
||||
exclude_unset = exclude_unset,
|
||||
# model_as_dict = model_as_dict,
|
||||
enabled = enabled,
|
||||
inc_address = inc_address,
|
||||
# inc_address_location = inc_address_location,
|
||||
inc_contact = inc_contact,
|
||||
# inc_event_abstract_list = inc_event_abstract_list,
|
||||
# inc_event_badge_list = inc_event_badge_list,
|
||||
inc_event_cfg = inc_event_cfg,
|
||||
# inc_event_device_list = inc_event_device_list,
|
||||
# inc_event_exhibit_list = inc_event_exhibit_list,
|
||||
inc_event_file_list = inc_event_file_list,
|
||||
inc_event_location = inc_event_location,
|
||||
# inc_event_location = inc_event_location,
|
||||
inc_event_location_list = inc_event_location_list,
|
||||
# inc_event_person = inc_event_person,
|
||||
inc_event_person_list = inc_event_person_list,
|
||||
inc_event_presentation_list = inc_event_presentation_list,
|
||||
inc_event_presenter_cat = inc_event_presenter_cat,
|
||||
# inc_event_presenter_cat = inc_event_presenter_cat,
|
||||
inc_event_presenter_list = inc_event_presenter_list,
|
||||
inc_event_registration_list = inc_event_registration_list,
|
||||
# inc_event_registration_cfg = inc_event_registration_cfg,
|
||||
# inc_event_registration_list = inc_event_registration_list,
|
||||
inc_event_session_list = inc_event_session_list,
|
||||
inc_event_track = inc_event_track,
|
||||
inc_event_track_list = inc_event_track_list,
|
||||
inc_event_cfg = inc_event_cfg,
|
||||
inc_event_registration_cfg = inc_event_registration_cfg,
|
||||
inc_location_address = inc_location_address,
|
||||
# inc_event_track = inc_event_track,
|
||||
# inc_event_track_list = inc_event_track_list,
|
||||
# inc_order_list = inc_order_list,
|
||||
inc_organization = inc_organization,
|
||||
inc_person = inc_person,
|
||||
inc_poc_event_person = inc_poc_event_person,
|
||||
# inc_product = inc_product,
|
||||
# inc_product_list = inc_product_list,
|
||||
inc_user = inc_user,
|
||||
):
|
||||
# event_dict = event_obj.dict(by_alias=by_alias, exclude_unset=exclude_unset)
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user