From 9aee3fa9a3d4b1ad4849d92624e392aa393439f6 Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Tue, 25 Jun 2024 17:02:38 +0200 Subject: [PATCH] Update doc office User API to provide all fields --- backend/routers/docOffices.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/backend/routers/docOffices.py b/backend/routers/docOffices.py index e148badd..6c12bccc 100644 --- a/backend/routers/docOffices.py +++ b/backend/routers/docOffices.py @@ -31,10 +31,14 @@ async def read_docOfficeByID(user: str): db.close() if item is None: raise HTTPException(status_code=404, detail="Item not found") - return {"idusers": item[0], - "email": item[1], + return { + "idUser": item[0], + "UserName": item[1], "docOffice_id": item[2], - } + "fname": item[3], + "lname": item[4], + "title": item[5], + } # Get List of all Doctors Office @router.get("/docOffices/", tags="DocOffice")