Clean up of code...

This commit is contained in:
Scott Idem
2021-06-11 18:42:28 -04:00
parent 64d6e87ca2
commit fe232b8cba
11 changed files with 198 additions and 147 deletions

View File

@@ -561,9 +561,9 @@ async def lookup_username(
# ### BEGIN ### API User ### get_user_obj_new() ###
# Working well as of 2021-06-11. Using as a template for other routes.
@router.get('/{user_id}', response_model=Resp_Body_Base)
@router.get('/{user_id}/json', response_model=Resp_Body_Base)
async def get_user_obj_new(
account_id: str = Query(..., min_length=1, max_length=22),
user_id: str = Query(..., min_length=1, max_length=22),
limit: int = 500, # For now this covers any included objects or object lists
enabled: str = 'enabled', # For now this covers any included objects or object lists
inc_address: bool = False, # Priority l1