File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 44from models_library .api_schemas_storage import DatasetMetaDataGet , FileMetaDataGet
55from models_library .generics import Envelope
66from simcore_service_storage ._meta import API_VTAG
7- from simcore_service_storage .models import FilesMetadataDatasetPathParams
8-
9- from api .specs .storage ._locations import LocationPathParams , StorageQueryParamsBase
7+ from simcore_service_storage .models import (
8+ FilesMetadataDatasetPathParams ,
9+ LocationPathParams ,
10+ StorageQueryParamsBase ,
11+ )
1012
1113router = APIRouter (
1214 prefix = f"/{ API_VTAG } " ,
Original file line number Diff line number Diff line change 2020 FilePathParams ,
2121 FileUploadQueryParams ,
2222 FileUploadResponseV1 ,
23+ LocationPathParams ,
24+ StorageQueryParamsBase ,
2325)
2426
25- from api .specs .storage ._datasets import LocationPathParams , StorageQueryParamsBase
26-
2727router = APIRouter (
2828 prefix = f"/{ API_VTAG } " ,
2929 tags = [
@@ -89,7 +89,7 @@ async def abort_upload_file(
8989
9090@router .post (
9191 "/locations/{location_id}/files/{file_id}:complete" ,
92- reponse_model = Envelope [FileUploadCompleteResponse ],
92+ response_model = Envelope [FileUploadCompleteResponse ],
9393)
9494async def complete_upload_file (
9595 _query : Annotated [StorageQueryParamsBase , Depends ()],
@@ -102,7 +102,6 @@ async def complete_upload_file(
102102@router .post (
103103 "/locations/{location_id}/files/{file_id}:complete/futures/{future_id}" ,
104104 response_model = FileUploadCompleteFutureResponse ,
105- reponses = {status .HTTP_404_NOT_FOUND },
106105)
107106async def is_completed_upload_file (
108107 _query : Annotated [StorageQueryParamsBase , Depends ()],
Original file line number Diff line number Diff line change 1212)
1313
1414
15- @router .get ("/" , reponse_model = Envelope [HealthCheck ])
15+ @router .get ("/" , response_model = Envelope [HealthCheck ])
1616async def get_health ():
1717 ...
1818
Original file line number Diff line number Diff line change 1010 DeleteFolderQueryParams ,
1111 SimcoreS3FoldersParams ,
1212)
13- from simcore_service_storage .models import SearchFilesQueryParams
14-
15- from api .specs .storage ._datasets import StorageQueryParamsBase
13+ from simcore_service_storage .models import (
14+ SearchFilesQueryParams ,
15+ StorageQueryParamsBase ,
16+ )
1617
1718router = APIRouter (
1819 prefix = f"/{ API_VTAG } " ,
You can’t perform that action at this time.
0 commit comments