Skip to content

Commit

Permalink
fix(orchestrator): remove v2/workflows/:workflowId endpoint (#2521)
Browse files Browse the repository at this point in the history
fix (orchestrator): remove v2/workflows/:workflowId endpoint
FLPATH-1563
https://issues.redhat.com/browse/FLPATH-1563

Signed-off-by: Yaron Dayagi <ydayagi@redhat.com>
  • Loading branch information
ydayagi authored Nov 12, 2024
1 parent 8f0e974 commit d4fc31b
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 608 deletions.
2 changes: 2 additions & 0 deletions .changeset/tame-tomatoes-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 1 addition & 1 deletion plugins/orchestrator-common/src/generated/.METADATA.sha1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
702b0fdee7e88ecd0bf41de1cca2ccdcd2faa793
0cb3f8cf23cb7df651c867567c6e4e210f4b4b5c

Large diffs are not rendered by default.

65 changes: 0 additions & 65 deletions plugins/orchestrator-common/src/generated/client/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1035,39 +1035,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
options: localVarRequestOptions,
};
},
/**
* Get full workflow info
* @param {string} workflowId ID of the workflow to fetch
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getWorkflowById: async (workflowId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'workflowId' is not null or undefined
assertParamExists('getWorkflowById', 'workflowId', workflowId)
const localVarPath = `/v2/workflows/{workflowId}`
.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}

const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;



setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Get the workflow input schema. It defines the input fields of the workflow
* @param {string} workflowId ID of the workflow to fetch
Expand Down Expand Up @@ -1337,18 +1304,6 @@ export const DefaultApiFp = function(configuration?: Configuration) {
const localVarOperationServerBasePath = operationServerMap['DefaultApi.getInstances']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* Get full workflow info
* @param {string} workflowId ID of the workflow to fetch
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getWorkflowById(workflowId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkflowDTO>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkflowById(workflowId, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['DefaultApi.getWorkflowById']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
* Get the workflow input schema. It defines the input fields of the workflow
* @param {string} workflowId ID of the workflow to fetch
Expand Down Expand Up @@ -1476,15 +1431,6 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
getInstances(getInstancesRequest?: GetInstancesRequest, options?: any): AxiosPromise<ProcessInstanceListResultDTO> {
return localVarFp.getInstances(getInstancesRequest, options).then((request) => request(axios, basePath));
},
/**
* Get full workflow info
* @param {string} workflowId ID of the workflow to fetch
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getWorkflowById(workflowId: string, options?: any): AxiosPromise<WorkflowDTO> {
return localVarFp.getWorkflowById(workflowId, options).then((request) => request(axios, basePath));
},
/**
* Get the workflow input schema. It defines the input fields of the workflow
* @param {string} workflowId ID of the workflow to fetch
Expand Down Expand Up @@ -1602,17 +1548,6 @@ export class DefaultApi extends BaseAPI {
return DefaultApiFp(this.configuration).getInstances(getInstancesRequest, options).then((request) => request(this.axios, this.basePath));
}

/**
* Get full workflow info
* @param {string} workflowId ID of the workflow to fetch
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
public getWorkflowById(workflowId: string, options?: RawAxiosRequestConfig) {
return DefaultApiFp(this.configuration).getWorkflowById(workflowId, options).then((request) => request(this.axios, this.basePath));
}

/**
* Get the workflow input schema. It defines the input fields of the workflow
* @param {string} workflowId ID of the workflow to fetch
Expand Down
Loading

0 comments on commit d4fc31b

Please sign in to comment.