open business apis
This commit is contained in:
@@ -176,7 +176,7 @@ async def read_all_businesses(search: str, type: str, session: SessionContainer
|
|||||||
|
|
||||||
# Get List of all files
|
# Get List of all files
|
||||||
@router.get("/business/business_id/{business_id}", tags=["MIH Business"])
|
@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()
|
dbEngine = mih_database.mihDbConnections.dbAllConnect()
|
||||||
dbSession = Session(dbEngine)
|
dbSession = Session(dbEngine)
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ class claimStatementUploud(BaseModel):
|
|||||||
sig_path: str
|
sig_path: str
|
||||||
|
|
||||||
@router.get("/minio/pull/file/{env}/{app_id}/{folder}/{file_name}", tags=["Minio"])
|
@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
|
path = app_id + "/" + folder + "/" + file_name
|
||||||
try:
|
try:
|
||||||
# print(f"env: {env}")
|
# print(f"env: {env}")
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ async def read_all_ratings_by_business_id(app_id: str,business_id: str, session:
|
|||||||
dbSession.close()
|
dbSession.close()
|
||||||
|
|
||||||
@router.get("/mzansi-directory/business-ratings/all/{business_id}", tags=["Mzansi Directory"])
|
@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()
|
dbEngine = mih_database.mihDbConnections.dbAllConnect()
|
||||||
dbSession = Session(dbEngine)
|
dbSession = Session(dbEngine)
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user