Skip to content

Commit 241576d

Browse files
authored
fix(orchestrator): add missing query parameter changes for /overview endpoint (janus-idp#1321)
fix: add missing query parameter changes for /overview endpoint
1 parent 9a13138 commit 241576d

File tree

4 files changed

+98
-0
lines changed

4 files changed

+98
-0
lines changed

plugins/orchestrator-common/src/auto-generated/api/definition.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,40 @@ const OPENAPI = `
2121
"get": {
2222
"operationId": "getWorkflowsOverview",
2323
"description": "Get a list of workflow overviews",
24+
"parameters": [
25+
{
26+
"name": "page",
27+
"in": "query",
28+
"description": "page number",
29+
"schema": {
30+
"type": "number"
31+
}
32+
},
33+
{
34+
"name": "pageSize",
35+
"in": "query",
36+
"description": "page size",
37+
"schema": {
38+
"type": "number"
39+
}
40+
},
41+
{
42+
"name": "orderBy",
43+
"in": "query",
44+
"description": "field name to order the data",
45+
"schema": {
46+
"type": "string"
47+
}
48+
},
49+
{
50+
"name": "orderDirection",
51+
"in": "query",
52+
"description": "ascending or descending",
53+
"schema": {
54+
"type": "string"
55+
}
56+
}
57+
],
2458
"responses": {
2559
"200": {
2660
"description": "Success",

plugins/orchestrator-common/src/auto-generated/api/models/schema.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,18 @@ export type external = Record<string, never>;
218218
export interface operations {
219219
/** @description Get a list of workflow overviews */
220220
getWorkflowsOverview: {
221+
parameters: {
222+
query?: {
223+
/** @description page number */
224+
page?: number;
225+
/** @description page size */
226+
pageSize?: number;
227+
/** @description field name to order the data */
228+
orderBy?: string;
229+
/** @description ascending or descending */
230+
orderDirection?: string;
231+
};
232+
};
221233
responses: {
222234
/** @description Success */
223235
200: {

plugins/orchestrator-common/src/auto-generated/docs/index.adoc/index.adoc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,37 @@ Get a list of workflow overviews
855855

856856

857857

858+
====== Query Parameters
859+
860+
[cols="2,3,1,1,1"]
861+
|===
862+
|Name| Description| Required| Default| Pattern
863+
864+
| page
865+
| page number
866+
| -
867+
| null
868+
|
869+
870+
| pageSize
871+
| page size
872+
| -
873+
| null
874+
|
875+
876+
| orderBy
877+
| field name to order the data
878+
| -
879+
| null
880+
|
881+
882+
| orderDirection
883+
| ascending or descending
884+
| -
885+
| null
886+
|
887+
888+
|===
858889

859890

860891
===== Return Type

plugins/orchestrator-common/src/openapi/openapi.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,27 @@ paths:
1313
get:
1414
operationId: getWorkflowsOverview
1515
description: Get a list of workflow overviews
16+
parameters:
17+
- name: page
18+
in: query
19+
description: page number
20+
schema:
21+
type: number
22+
- name: pageSize
23+
in: query
24+
description: page size
25+
schema:
26+
type: number
27+
- name: orderBy
28+
in: query
29+
description: field name to order the data
30+
schema:
31+
type: string
32+
- name: orderDirection
33+
in: query
34+
description: ascending or descending
35+
schema:
36+
type: string
1637
responses:
1738
'200':
1839
description: Success

0 commit comments

Comments
 (0)