fix: example showing get user details
This commit is contained in:
parent
5c5cb137fc
commit
8c79da4fed
1 changed files with 17 additions and 0 deletions
|
|
@ -98,3 +98,20 @@ async def test_hub_access(headers: header_dependency, client: http_client_depend
|
|||
}
|
||||
|
||||
return response
|
||||
|
||||
|
||||
@router.get("/hub/user")
|
||||
async def test_hub_access(headers: header_dependency, client: http_client_dependency):
|
||||
hub_response = await client.get(
|
||||
f"http://localhost:8001/api/v1/user/self/db",
|
||||
headers=headers
|
||||
)
|
||||
|
||||
response = {
|
||||
"response": {
|
||||
"status": hub_response.status_code,
|
||||
"json": hub_response.json()
|
||||
}
|
||||
}
|
||||
|
||||
return response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue