Skip to content

Commit 9db90be

Browse files
Merge branch 'master' into vip-models-fix-pricing-units-v2
2 parents 4431b9e + cdabc90 commit 9db90be

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

api/specs/web-server/_storage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
FileUploadCompletionBody,
1818
FileUploadSchema,
1919
LinkType,
20+
PathMetaDataGet,
2021
PresignedLink,
2122
)
2223
from models_library.api_schemas_webserver.storage import (
@@ -58,7 +59,7 @@ async def list_storage_locations():
5859

5960
@router.get(
6061
"/storage/locations/{location_id}/paths",
61-
response_model=CursorPage[FileMetaDataGet],
62+
response_model=CursorPage[PathMetaDataGet],
6263
)
6364
async def list_storage_paths(
6465
_path: Annotated[StorageLocationPathParams, Depends()],

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6071,7 +6071,7 @@ paths:
60716071
content:
60726072
application/json:
60736073
schema:
6074-
$ref: '#/components/schemas/CursorPage_FileMetaDataGet_'
6074+
$ref: '#/components/schemas/CursorPage_PathMetaDataGet_'
60756075
/v0/storage/locations/{location_id}/datasets:
60766076
get:
60776077
tags:
@@ -8413,11 +8413,11 @@ components:
84138413
required:
84148414
- priceDollars
84158415
title: CreateWalletPayment
8416-
CursorPage_FileMetaDataGet_:
8416+
CursorPage_PathMetaDataGet_:
84178417
properties:
84188418
items:
84198419
items:
8420-
$ref: '#/components/schemas/FileMetaDataGet'
8420+
$ref: '#/components/schemas/PathMetaDataGet'
84218421
type: array
84228422
title: Items
84238423
total:
@@ -8453,7 +8453,7 @@ components:
84538453
type: object
84548454
required:
84558455
- items
8456-
title: CursorPage[FileMetaDataGet]
8456+
title: CursorPage[PathMetaDataGet]
84578457
DatCoreFileLink:
84588458
properties:
84598459
store:
@@ -12426,6 +12426,29 @@ components:
1242612426
required:
1242712427
- value
1242812428
title: PatchRequestBody
12429+
PathMetaDataGet:
12430+
properties:
12431+
path:
12432+
type: string
12433+
format: path
12434+
title: Path
12435+
description: the path to the current path
12436+
display_path:
12437+
type: string
12438+
format: path
12439+
title: Display Path
12440+
description: the path to display with UUID replaced
12441+
file_meta_data:
12442+
anyOf:
12443+
- $ref: '#/components/schemas/FileMetaDataGet'
12444+
- type: 'null'
12445+
description: if filled, this is the file meta data of the s3 object
12446+
additionalProperties: false
12447+
type: object
12448+
required:
12449+
- path
12450+
- display_path
12451+
title: PathMetaDataGet
1242912452
PaymentMethodGet:
1243012453
properties:
1243112454
idr:

0 commit comments

Comments
 (0)