Update doc office User API to provide all fields
This commit is contained in:
parent
6293adc0dc
commit
9aee3fa9a3
1 changed files with 7 additions and 3 deletions
|
|
@ -31,9 +31,13 @@ async def read_docOfficeByID(user: str):
|
||||||
db.close()
|
db.close()
|
||||||
if item is None:
|
if item is None:
|
||||||
raise HTTPException(status_code=404, detail="Item not found")
|
raise HTTPException(status_code=404, detail="Item not found")
|
||||||
return {"idusers": item[0],
|
return {
|
||||||
"email": item[1],
|
"idUser": item[0],
|
||||||
|
"UserName": item[1],
|
||||||
"docOffice_id": item[2],
|
"docOffice_id": item[2],
|
||||||
|
"fname": item[3],
|
||||||
|
"lname": item[4],
|
||||||
|
"title": item[5],
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get List of all Doctors Office
|
# Get List of all Doctors Office
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue