open business apis

This commit is contained in:
2025-09-10 13:30:29 +02:00
parent 1a474137fd
commit 6dfa443974
3 changed files with 3 additions and 3 deletions

View File

@@ -176,7 +176,7 @@ async def read_all_businesses(search: str, type: str, session: SessionContainer
# Get List of all files
@router.get("/business/business_id/{business_id}", tags=["MIH Business"])
async def read_business_by_business_id(business_id: str, session: SessionContainer = Depends(verify_session())): #, session: SessionContainer = Depends(verify_session())
async def read_business_by_business_id(business_id: str): #, session: SessionContainer = Depends(verify_session())
dbEngine = mih_database.mihDbConnections.dbAllConnect()
dbSession = Session(dbEngine)
try:

View File

@@ -108,7 +108,7 @@ class claimStatementUploud(BaseModel):
sig_path: str
@router.get("/minio/pull/file/{env}/{app_id}/{folder}/{file_name}", tags=["Minio"])
async def pull_File_from_user(app_id: str, folder: str, file_name: str, env: str, session: SessionContainer = Depends(verify_session())): #, session: SessionContainer = Depends(verify_session())
async def pull_File_from_user(app_id: str, folder: str, file_name: str, env: str): #, session: SessionContainer = Depends(verify_session())
path = app_id + "/" + folder + "/" + file_name
try:
# print(f"env: {env}")

View File

@@ -96,7 +96,7 @@ async def read_all_ratings_by_business_id(app_id: str,business_id: str, session:
dbSession.close()
@router.get("/mzansi-directory/business-ratings/all/{business_id}", tags=["Mzansi Directory"])
async def read_all_ratings_by_business_id(business_id: str, session: SessionContainer = Depends(verify_session())): # , session: SessionContainer = Depends(verify_session())
async def read_all_ratings_by_business_id(business_id: str): # , session: SessionContainer = Depends(verify_session())
dbEngine = mih_database.mihDbConnections.dbAllConnect()
dbSession = Session(dbEngine)
try: