Clean up and working on user related models, methods, and routes.

This commit is contained in:
Scott Idem
2021-06-11 15:00:39 -04:00
parent 03bb55e62a
commit 29dfcc5440
7 changed files with 476 additions and 139 deletions

View File

@@ -91,7 +91,7 @@ async def get_account_obj_li(
return result
# ### BEGIN ### API Account ### get_account_obj() ###
# ### BEGIN ### API Account ### get_account_obj_new() ###
# Working well as of 2021-06-11. Using as a template for other routes.
@router.get('/{account_id}', response_model=Resp_Body_Base)
async def get_account_obj_new(
@@ -152,6 +152,8 @@ async def get_account_obj_new(
inc_person_list: bool = False,
# inc_post: bool = False,
inc_post_list: bool = False, # Priority l1
# inc_post_comment: bool = False,
inc_post_comment_list: bool = False,
# inc_product: bool = False,
inc_product_list: bool = False,
# inc_site: bool = False,
@@ -230,7 +232,7 @@ async def get_account_obj_new(
return mk_resp(data=False, status_code=400) # Bad Request
return mk_resp(data=response_data)
# ### END ### API Account ### get_account_obj() ###
# ### END ### API Account ### get_account_obj_new() ###
@router.get('/{obj_id}', response_model=Resp_Body_Base)