Skip to content

Commit

Permalink
fix(orchestrator): add missing query parameter changes for /overview …
Browse files Browse the repository at this point in the history
…endpoint (#1321)

fix: add missing query parameter changes for /overview endpoint
  • Loading branch information
JudeNiroshan authored Mar 8, 2024
1 parent 9a13138 commit 241576d
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 0 deletions.
34 changes: 34 additions & 0 deletions plugins/orchestrator-common/src/auto-generated/api/definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,40 @@ const OPENAPI = `
"get": {
"operationId": "getWorkflowsOverview",
"description": "Get a list of workflow overviews",
"parameters": [
{
"name": "page",
"in": "query",
"description": "page number",
"schema": {
"type": "number"
}
},
{
"name": "pageSize",
"in": "query",
"description": "page size",
"schema": {
"type": "number"
}
},
{
"name": "orderBy",
"in": "query",
"description": "field name to order the data",
"schema": {
"type": "string"
}
},
{
"name": "orderDirection",
"in": "query",
"description": "ascending or descending",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,18 @@ export type external = Record<string, never>;
export interface operations {
/** @description Get a list of workflow overviews */
getWorkflowsOverview: {
parameters: {
query?: {
/** @description page number */
page?: number;
/** @description page size */
pageSize?: number;
/** @description field name to order the data */
orderBy?: string;
/** @description ascending or descending */
orderDirection?: string;
};
};
responses: {
/** @description Success */
200: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,37 @@ Get a list of workflow overviews



====== Query Parameters

[cols="2,3,1,1,1"]
|===
|Name| Description| Required| Default| Pattern

| page
| page number
| -
| null
|

| pageSize
| page size
| -
| null
|

| orderBy
| field name to order the data
| -
| null
|

| orderDirection
| ascending or descending
| -
| null
|

|===


===== Return Type
Expand Down
21 changes: 21 additions & 0 deletions plugins/orchestrator-common/src/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,27 @@ paths:
get:
operationId: getWorkflowsOverview
description: Get a list of workflow overviews
parameters:
- name: page
in: query
description: page number
schema:
type: number
- name: pageSize
in: query
description: page size
schema:
type: number
- name: orderBy
in: query
description: field name to order the data
schema:
type: string
- name: orderDirection
in: query
description: ascending or descending
schema:
type: string
responses:
'200':
description: Success
Expand Down

0 comments on commit 241576d

Please sign in to comment.