Добавлен эндпоинт getVaccsReport
This commit is contained in:
@ -65,6 +65,16 @@ async def get_entries():
|
||||
)
|
||||
|
||||
|
||||
@router.get('/getVaccsReport')
|
||||
async def get_vaccs_report():
|
||||
"""
|
||||
Get report of vaccinations for user by id.
|
||||
"""
|
||||
return await c.vitacore_api.getVaccsReport(
|
||||
'6fe66cae-409a-4f56-8ae9-d55d3c38569b'
|
||||
)
|
||||
|
||||
|
||||
@router.post('/measurement', status_code=status.HTTP_202_ACCEPTED)
|
||||
async def measurement(
|
||||
user: Annotated[str, Depends(login)],
|
||||
@ -139,11 +149,6 @@ async def get_elns(user: Annotated[str, Depends(login)]):
|
||||
return mock.elns[0]
|
||||
|
||||
|
||||
@router.get('/getVaccsReport')
|
||||
async def get_vaccs_report(user: Annotated[str, Depends(login)]):
|
||||
return mock.vacs[0]
|
||||
|
||||
|
||||
@router.get('/getDiagnosticResults')
|
||||
async def get_diagnostic_results(user: Annotated[str, Depends(login)]):
|
||||
return mock.diagnosticResults
|
||||
|
||||
Reference in New Issue
Block a user