Saving current progress with change from using Query() to Path()
This commit is contained in:
@@ -160,7 +160,7 @@ async def directory_check(
|
||||
# Updated 2022-08-08
|
||||
@router.get('/{hosted_file_id}/download', response_model=Resp_Body_Base)
|
||||
async def download_hosted_file(
|
||||
hosted_file_id: str = Query(..., min_length=11, max_length=22),
|
||||
hosted_file_id: str = Path(min_length=11, max_length=22),
|
||||
filename: str = Query(None, min_length=4, max_length=100),
|
||||
# streaming: bool = False,
|
||||
|
||||
@@ -247,7 +247,7 @@ async def file_streamer(path: str, start: int, end: int):
|
||||
# Updated 2023-08-18
|
||||
@router.get('/{hosted_file_id}/stream')
|
||||
async def stream_hosted_file(
|
||||
hosted_file_id: str = Query(..., min_length=11, max_length=22),
|
||||
hosted_file_id: str = Path(min_length=11, max_length=22),
|
||||
filename: str = Query(None, min_length=4, max_length=100),
|
||||
# streaming: bool = True,
|
||||
|
||||
@@ -334,7 +334,7 @@ async def stream_hosted_file(
|
||||
# @router.get('/{hosted_file_id}/stream')
|
||||
# # def stream_hosted_file(
|
||||
# async def stream_hosted_file(
|
||||
# hosted_file_id: str = Query(..., min_length=11, max_length=22),
|
||||
# hosted_file_id: str = Path(min_length=11, max_length=22),
|
||||
# filename: str = Query(None, min_length=4, max_length=100),
|
||||
# streaming: bool = True,
|
||||
|
||||
@@ -844,7 +844,7 @@ async def test_upload_files(
|
||||
# Updated 2022-08-09
|
||||
@router.delete('/{hosted_file_id}', response_model=Resp_Body_Base)
|
||||
async def delete_hosted_file(
|
||||
hosted_file_id: str = Query(..., min_length=11, max_length=22),
|
||||
hosted_file_id: str = Path(min_length=11, max_length=22),
|
||||
|
||||
link_to_type: str = None,
|
||||
link_to_id: Union[int, str] = None,
|
||||
@@ -876,7 +876,7 @@ async def delete_hosted_file(
|
||||
# Updated 2021-09-07
|
||||
@router.get('/{hosted_file_id}', response_model=Resp_Body_Base)
|
||||
async def get_hosted_file_obj(
|
||||
hosted_file_id: str = Query(..., min_length=11, max_length=22),
|
||||
hosted_file_id: str = Path(min_length=11, max_length=22),
|
||||
enabled: str = 'enabled', # enabled, disabled, all; For now this covers any included objects or object lists
|
||||
x_account_id: str = Header(...),
|
||||
by_alias: Optional[bool] = True,
|
||||
@@ -996,7 +996,7 @@ async def download_tmp(
|
||||
# Updated 2023-04-04
|
||||
@router.get('/{hosted_file_id}/convert_file')
|
||||
async def convert_file(
|
||||
hosted_file_id: str = Query(..., min_length=11, max_length=22),
|
||||
hosted_file_id: str = Path(min_length=11, max_length=22),
|
||||
|
||||
link_to_type: str = Query(..., min_length=2, max_length=50),
|
||||
link_to_id: str = Query(..., min_length=11, max_length=22),
|
||||
|
||||
Reference in New Issue
Block a user