Skip to content

Commit 9472ac3

Browse files
ODM-12912: Update runs/by/group endpoints for cursor-based pagination (#499)
1 parent 6795a45 commit 9472ac3

File tree

7 files changed

+46
-69
lines changed

7 files changed

+46
-69
lines changed

openapi/v1/expressionCurator.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ paths:
431431
get:
432432
description: |+
433433
## Paging
434-
For performance reasons this endpoint returns results in "pages" of limited size. In order to retrieve all matching results the client needs to request multiple pages starting from an offset to the first result. You can do this using the pageOffset query parameter. A value of 0 (the default) instructs the server to return the first page of results, 100 would return a page of results starting from the 101st result and so on. To return all results iterate through pages using pageOffset values of `n * pageLimit` until the `resultsExhausted` response field is true.
434+
For performance reasons this endpoint returns results in "pages" of limited size together with a `cursor` tag. To retrieve the next page of results please supply this `cursor` tag to resume the query from your previous result and get the next page. If there are no more results you will just retrieve an empty result.
435435
436436
operationId: searchExpressionRunsAsCurator
437437
parameters:
@@ -441,14 +441,11 @@ paths:
441441
required: true
442442
schema:
443443
type: string
444-
- description: "Show the page {pageOffset+1} results from the start of the results.\
445-
\ E.g. 100 will show a page of results starting from the 101st result.\
446-
\ The default value is 0."
444+
- description: The page tag to resume results from (see paging above).
447445
in: query
448-
name: pageOffset
446+
name: cursor
449447
schema:
450-
format: int32
451-
type: integer
448+
type: string
452449
- description: Maximum number of results to return per page (see Paging above).
453450
This value must be between 0 and 2000 (inclusive). The default is 2000.
454451
in: query
@@ -461,7 +458,7 @@ paths:
461458
content:
462459
application/json:
463460
schema:
464-
$ref: "#/components/schemas/ListResponse"
461+
$ref: "#/components/schemas/RunsResponse"
465462
description: The request was successful. The returned value is the object.
466463
"400":
467464
content: {}

openapi/v1/expressionUser.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ paths:
432432
get:
433433
description: |+
434434
## Paging
435-
For performance reasons this endpoint returns results in "pages" of limited size. In order to retrieve all matching results the client needs to request multiple pages starting from an offset to the first result. You can do this using the pageOffset query parameter. A value of 0 (the default) instructs the server to return the first page of results, 100 would return a page of results starting from the 101st result and so on. To return all results iterate through pages using pageOffset values of `n * pageLimit` until the `resultsExhausted` response field is true.
435+
For performance reasons this endpoint returns results in "pages" of limited size together with a `cursor` tag. To retrieve the next page of results please supply this `cursor` tag to resume the query from your previous result and get the next page. If there are no more results you will just retrieve an empty result.
436436
437437
operationId: searchExpressionRunsAsUser
438438
parameters:
@@ -442,14 +442,11 @@ paths:
442442
required: true
443443
schema:
444444
type: string
445-
- description: "Show the page {pageOffset+1} results from the start of the results.\
446-
\ E.g. 100 will show a page of results starting from the 101st result.\
447-
\ The default value is 0."
445+
- description: The page tag to resume results from (see paging above).
448446
in: query
449-
name: pageOffset
447+
name: cursor
450448
schema:
451-
format: int32
452-
type: integer
449+
type: string
453450
- description: Maximum number of results to return per page (see Paging above).
454451
This value must be between 0 and 2000 (inclusive). The default is 2000.
455452
in: query
@@ -462,7 +459,7 @@ paths:
462459
content:
463460
application/json:
464461
schema:
465-
$ref: "#/components/schemas/ListResponse"
462+
$ref: "#/components/schemas/RunsResponse"
466463
description: The request was successful. The returned value is the object.
467464
"400":
468465
content: {}
@@ -670,6 +667,8 @@ components:
670667
$ref: "./schemas/common/ResponseFormat.yaml"
671668
RunFilter:
672669
$ref: "./schemas/common/RunFilter.yaml"
670+
RunsResponse:
671+
$ref: "./schemas/common/RunsResponse.yaml"
673672
SignalRun:
674673
$ref: "./schemas/common/SignalRun.yaml"
675674
securitySchemes:

openapi/v1/flowCytometryCurator.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ paths:
438438
get:
439439
description: |+
440440
## Paging
441-
For performance reasons this endpoint returns results in "pages" of limited size. In order to retrieve all matching results the client needs to request multiple pages starting from an offset to the first result. You can do this using the pageOffset query parameter. A value of 0 (the default) instructs the server to return the first page of results, 100 would return a page of results starting from the 101st result and so on. To retrieve all results, iterate through pages using `pageOffset` values of `n * pageLimit` until a page returns fewer results than the page limit, which indicates there are no more results.
441+
For performance reasons this endpoint returns results in "pages" of limited size together with a `cursor` tag. To retrieve the next page of results please supply this `cursor` tag to resume the query from your previous result and get the next page. If there are no more results you will just retrieve an empty result.
442442
443443
operationId: searchFlowCytometryRunsAsCurator
444444
parameters:
@@ -448,14 +448,11 @@ paths:
448448
required: true
449449
schema:
450450
type: string
451-
- description: "Show the page {pageOffset+1} results from the start of the results.\
452-
\ E.g. 100 will show a page of results starting from the 101st result.\
453-
\ The default value is 0."
451+
- description: The page tag to resume results from (see paging above).
454452
in: query
455-
name: pageOffset
453+
name: cursor
456454
schema:
457-
format: int32
458-
type: integer
455+
type: string
459456
- description: Maximum number of results to return per page (see Paging above).
460457
This value must be between 0 and 2000 (inclusive). The default is 2000.
461458
in: query
@@ -468,7 +465,7 @@ paths:
468465
content:
469466
application/json:
470467
schema:
471-
$ref: "#/components/schemas/ListResponse"
468+
$ref: "#/components/schemas/RunsResponse"
472469
description: The request was successful. The returned value is the object.
473470
"400":
474471
content: {}

openapi/v1/flowCytometryUser.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ paths:
438438
get:
439439
description: |+
440440
## Paging
441-
For performance reasons this endpoint returns results in "pages" of limited size. In order to retrieve all matching results the client needs to request multiple pages starting from an offset to the first result. You can do this using the pageOffset query parameter. A value of 0 (the default) instructs the server to return the first page of results, 100 would return a page of results starting from the 101st result and so on. To retrieve all results, iterate through pages using `pageOffset` values of `n * pageLimit` until a page returns fewer results than the page limit, which indicates there are no more results.
441+
For performance reasons this endpoint returns results in "pages" of limited size together with a `cursor` tag. To retrieve the next page of results please supply this `cursor` tag to resume the query from your previous result and get the next page. If there are no more results you will just retrieve an empty result.
442442
443443
operationId: searchFlowCytometryRunsAsUser
444444
parameters:
@@ -448,14 +448,11 @@ paths:
448448
required: true
449449
schema:
450450
type: string
451-
- description: "Show the page {pageOffset+1} results from the start of the results.\
452-
\ E.g. 100 will show a page of results starting from the 101st result.\
453-
\ The default value is 0."
451+
- description: The page tag to resume results from (see paging above).
454452
in: query
455-
name: pageOffset
453+
name: cursor
456454
schema:
457-
format: int32
458-
type: integer
455+
type: string
459456
- description: Maximum number of results to return per page (see Paging above).
460457
This value must be between 0 and 2000 (inclusive). The default is 2000.
461458
in: query
@@ -468,7 +465,7 @@ paths:
468465
content:
469466
application/json:
470467
schema:
471-
$ref: "#/components/schemas/ListResponse"
468+
$ref: "#/components/schemas/RunsResponse"
472469
description: The request was successful. The returned value is the object.
473470
"400":
474471
content: {}
@@ -676,6 +673,8 @@ components:
676673
$ref: "./schemas/common/ResponseFormat.yaml"
677674
RunFilter:
678675
$ref: "./schemas/common/RunFilter.yaml"
676+
RunsResponse:
677+
$ref: "./schemas/common/RunsResponse.yaml"
679678
SignalRun:
680679
$ref: "./schemas/common/SignalRun.yaml"
681680
securitySchemes:
Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,16 @@
11
example:
2-
experiment: experiment
3-
warnings:
4-
- warnings
5-
- warnings
6-
versionChainId: versionChainId
7-
runs:
8-
-
9-
-
2+
cursor: "1"
3+
data:
4+
- runId: "1"
5+
sampleSourceId: "exp4-human-100well.ATATCCTACTACTTAACTAG"
6+
- runId: "2"
7+
sampleSourceId: "exp4-human-100well.TTACCTAAGTTTGATATATT"
108
properties:
11-
runs:
12-
items:
13-
$ref: "#/components/schemas/SignalRun"
14-
type: array
15-
experiment:
9+
cursor:
1610
type: string
17-
warnings:
11+
data:
1812
items:
19-
type: string
13+
properties: { }
14+
type: object
2015
type: array
21-
versionChainId:
22-
type: string
2316
type: object
24-
components:
25-
schemas:
26-
SignalRun:
27-
$ref: "./SignalRun.yaml"

openapi/v1/variantCurator.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ paths:
463463
get:
464464
description: |+
465465
## Paging
466-
For performance reasons this endpoint returns results in "pages" of limited size. In order to retrieve all matching results the client needs to request multiple pages starting from an offset to the first result. You can do this using the pageOffset query parameter. A value of 0 (the default) instructs the server to return the first page of results, 100 would return a page of results starting from the 101st result and so on. To retrieve all results, iterate through pages using `pageOffset` values of `n * pageLimit` until a page returns fewer results than the page limit, which indicates there are no more results.
466+
For performance reasons this endpoint returns results in "pages" of limited size together with a `cursor` tag. To retrieve the next page of results please supply this `cursor` tag to resume the query from your previous result and get the next page. If there are no more results you will just retrieve an empty result.
467467
468468
operationId: searchVariantRunsAsCurator
469469
parameters:
@@ -473,14 +473,11 @@ paths:
473473
required: true
474474
schema:
475475
type: string
476-
- description: "Show the page {pageOffset+1} results from the start of the results.\
477-
\ E.g. 100 will show a page of results starting from the 101st result.\
478-
\ The default value is 0."
476+
- description: The page tag to resume results from (see paging above).
479477
in: query
480-
name: pageOffset
478+
name: cursor
481479
schema:
482-
format: int32
483-
type: integer
480+
type: string
484481
- description: Maximum number of results to return per page (see Paging above).
485482
This value must be between 0 and 2000 (inclusive). The default is 2000.
486483
in: query
@@ -493,7 +490,7 @@ paths:
493490
content:
494491
application/json:
495492
schema:
496-
$ref: "#/components/schemas/ListResponse"
493+
$ref: "#/components/schemas/RunsResponse"
497494
description: The request was successful. The returned value is the object.
498495
"400":
499496
content: {}

openapi/v1/variantUser.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ paths:
464464
get:
465465
description: |+
466466
## Paging
467-
For performance reasons this endpoint returns results in "pages" of limited size. In order to retrieve all matching results the client needs to request multiple pages starting from an offset to the first result. You can do this using the pageOffset query parameter. A value of 0 (the default) instructs the server to return the first page of results, 100 would return a page of results starting from the 101st result and so on. To retrieve all results, iterate through pages using `pageOffset` values of `n * pageLimit` until a page returns fewer results than the page limit, which indicates there are no more results.
467+
For performance reasons this endpoint returns results in "pages" of limited size together with a `cursor` tag. To retrieve the next page of results please supply this `cursor` tag to resume the query from your previous result and get the next page. If there are no more results you will just retrieve an empty result.
468468
469469
operationId: searchVariantRunsAsUser
470470
parameters:
@@ -474,14 +474,11 @@ paths:
474474
required: true
475475
schema:
476476
type: string
477-
- description: "Show the page {pageOffset+1} results from the start of the results.\
478-
\ E.g. 100 will show a page of results starting from the 101st result.\
479-
\ The default value is 0."
477+
- description: The page tag to resume results from (see paging above).
480478
in: query
481-
name: pageOffset
479+
name: cursor
482480
schema:
483-
format: int32
484-
type: integer
481+
type: string
485482
- description: Maximum number of results to return per page (see Paging above).
486483
This value must be between 0 and 2000 (inclusive). The default is 2000.
487484
in: query
@@ -494,7 +491,7 @@ paths:
494491
content:
495492
application/json:
496493
schema:
497-
$ref: "#/components/schemas/ListResponse"
494+
$ref: "#/components/schemas/RunsResponse"
498495
description: The request was successful. The returned value is the object.
499496
"400":
500497
content: {}
@@ -698,6 +695,8 @@ components:
698695
$ref: "./schemas/common/ResponseFormat.yaml"
699696
RunFilter:
700697
$ref: "./schemas/common/RunFilter.yaml"
698+
RunsResponse:
699+
$ref: "./schemas/common/RunsResponse.yaml"
701700
SignalRun:
702701
$ref: "./schemas/common/SignalRun.yaml"
703702
VariantItem:

0 commit comments

Comments
 (0)