Skip to content

Commit e761d74

Browse files
fix: add items_per_page param
1 parent 5cd9e64 commit e761d74

File tree

3 files changed

+49
-9
lines changed

3 files changed

+49
-9
lines changed

packages/models-library/src/models_library/api_schemas_webserver/storage.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,11 @@ class SearchBodyParams(InputSchema):
5757
description=f"Name pattern with wildcard support {tuple(WILDCARD_CHARS)}. Minimum of {MIN_NON_WILDCARD_CHARS} non-wildcard characters required.",
5858
),
5959
]
60+
items_per_page: Annotated[
61+
int,
62+
Field(
63+
description="Number of items per page",
64+
ge=1,
65+
le=MAX_NUMBER_OF_PATHS_PER_PAGE,
66+
),
67+
] = DEFAULT_NUMBER_OF_PATHS_PER_PAGE

services/api-server/openapi.json

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12307,20 +12307,37 @@
1230712307
"type": "string",
1230812308
"title": "Status Href"
1230912309
},
12310-
"result_href": {
12311-
"type": "string",
12312-
"title": "Result Href"
12313-
},
1231412310
"abort_href": {
1231512311
"type": "string",
1231612312
"title": "Abort Href"
12313+
},
12314+
"result_href": {
12315+
"anyOf": [
12316+
{
12317+
"type": "string"
12318+
},
12319+
{
12320+
"type": "null"
12321+
}
12322+
],
12323+
"title": "Result Href"
12324+
},
12325+
"result_stream_href": {
12326+
"anyOf": [
12327+
{
12328+
"type": "string"
12329+
},
12330+
{
12331+
"type": "null"
12332+
}
12333+
],
12334+
"title": "Result Stream Href"
1231712335
}
1231812336
},
1231912337
"type": "object",
1232012338
"required": [
1232112339
"task_id",
1232212340
"status_href",
12323-
"result_href",
1232412341
"abort_href"
1232512342
],
1232612343
"title": "TaskGet"

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

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17109,6 +17109,15 @@ components:
1710917109
namePattern:
1711017110
type: string
1711117111
title: Namepattern
17112+
description: Name pattern with wildcard support ('*', '?'). Minimum of 3
17113+
non-wildcard characters required.
17114+
itemsPerPage:
17115+
type: integer
17116+
maximum: 1000
17117+
minimum: 1
17118+
title: Itemsperpage
17119+
description: Number of items per page
17120+
default: 50
1711217121
type: object
1711317122
required:
1711417123
- namePattern
@@ -18075,17 +18084,23 @@ components:
1807518084
status_href:
1807618085
type: string
1807718086
title: Status Href
18078-
result_href:
18079-
type: string
18080-
title: Result Href
1808118087
abort_href:
1808218088
type: string
1808318089
title: Abort Href
18090+
result_href:
18091+
anyOf:
18092+
- type: string
18093+
- type: 'null'
18094+
title: Result Href
18095+
result_stream_href:
18096+
anyOf:
18097+
- type: string
18098+
- type: 'null'
18099+
title: Result Stream Href
1808418100
type: object
1808518101
required:
1808618102
- task_id
1808718103
- status_href
18088-
- result_href
1808918104
- abort_href
1809018105
title: TaskGet
1809118106
TaskInfoDict:

0 commit comments

Comments
 (0)