Update metadat of apis for api docs

This commit is contained in:
2024-07-29 12:57:43 +02:00
parent 33088ca1fc
commit e11eaa0450
7 changed files with 52 additions and 36 deletions

View File

@@ -42,8 +42,8 @@ class fileInsertRequest(BaseModel):
# return items
# Get List of all files by patient
@router.get("/files/patients/{app_id}", tags="patients_files")
async def read_all_files_by_patient(app_id: str, session: SessionContainer = Depends(verify_session())):
@router.get("/files/patients/{app_id}", tags=["Patients Files"])
async def read_all_patient_files_by_app_id(app_id: str, session: SessionContainer = Depends(verify_session())):
db = database.dbConnection.dbConnect()
cursor = db.cursor()
query = "SELECT * FROM patient_files where app_id = %s ORDER BY insert_date DESC"