Skip to content

Commit 21b1aec

Browse files
committed
openapi
1 parent 74bd33a commit 21b1aec

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

api/specs/storage/_datasets.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
from models_library.api_schemas_storage import DatasetMetaDataGet, FileMetaDataGet
55
from models_library.generics import Envelope
66
from 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

1113
router = APIRouter(
1214
prefix=f"/{API_VTAG}",

api/specs/storage/_files.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
FilePathParams,
2121
FileUploadQueryParams,
2222
FileUploadResponseV1,
23+
LocationPathParams,
24+
StorageQueryParamsBase,
2325
)
2426

25-
from api.specs.storage._datasets import LocationPathParams, StorageQueryParamsBase
26-
2727
router = 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
)
9494
async 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
)
107106
async def is_completed_upload_file(
108107
_query: Annotated[StorageQueryParamsBase, Depends()],

api/specs/storage/_health.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
)
1313

1414

15-
@router.get("/", reponse_model=Envelope[HealthCheck])
15+
@router.get("/", response_model=Envelope[HealthCheck])
1616
async def get_health():
1717
...
1818

api/specs/storage/_simcore_s3.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
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

1718
router = APIRouter(
1819
prefix=f"/{API_VTAG}",

0 commit comments

Comments
 (0)