Skip to content
Snippets Groups Projects
Commit a92f576f authored by Benedikt Heinrichs's avatar Benedikt Heinrichs Committed by Petar Hristov
Browse files

Update: Multiple MimeType Support

parent 47261aed
No related branches found
No related tags found
2 merge requests!32Release: Sprint/2022 10 :robot:,!31Update: Multiple MimeType Support
......@@ -33,10 +33,11 @@ export const TreeApiAxiosParamCreator = function (configuration?: Configuration)
* @summary This method retrieves the metadata
* @param {string} resourceId Id of a resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
treeGetMetadataWithParameter: async (resourceId: string, path?: string, options: any = {}): Promise<RequestArgs> => {
treeGetMetadataWithParameter: async (resourceId: string, path?: string, mimeType?: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'resourceId' is not null or undefined
assertParamExists('treeGetMetadataWithParameter', 'resourceId', resourceId)
const localVarPath = `/Tree/{resourceId}`
......@@ -59,6 +60,10 @@ export const TreeApiAxiosParamCreator = function (configuration?: Configuration)
localVarQueryParameter['path'] = path;
}
if (mimeType !== undefined) {
localVarQueryParameter['mimeType'] = mimeType;
}
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
......@@ -75,10 +80,11 @@ export const TreeApiAxiosParamCreator = function (configuration?: Configuration)
* @summary This method stores the metadata of the file
* @param {string} resourceId Id of the resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
treeStoreMetadataForFileWithParameter: async (resourceId: string, path?: string, options: any = {}): Promise<RequestArgs> => {
treeStoreMetadataForFileWithParameter: async (resourceId: string, path?: string, mimeType?: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'resourceId' is not null or undefined
assertParamExists('treeStoreMetadataForFileWithParameter', 'resourceId', resourceId)
const localVarPath = `/Tree/{resourceId}`
......@@ -101,6 +107,10 @@ export const TreeApiAxiosParamCreator = function (configuration?: Configuration)
localVarQueryParameter['path'] = path;
}
if (mimeType !== undefined) {
localVarQueryParameter['mimeType'] = mimeType;
}
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
......@@ -127,11 +137,12 @@ export const TreeApiFp = function(configuration?: Configuration) {
* @summary This method retrieves the metadata
* @param {string} resourceId Id of a resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async treeGetMetadataWithParameter(resourceId: string, path?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.treeGetMetadataWithParameter(resourceId, path, options);
async treeGetMetadataWithParameter(resourceId: string, path?: string, mimeType?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.treeGetMetadataWithParameter(resourceId, path, mimeType, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
......@@ -139,11 +150,12 @@ export const TreeApiFp = function(configuration?: Configuration) {
* @summary This method stores the metadata of the file
* @param {string} resourceId Id of the resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async treeStoreMetadataForFileWithParameter(resourceId: string, path?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.treeStoreMetadataForFileWithParameter(resourceId, path, options);
async treeStoreMetadataForFileWithParameter(resourceId: string, path?: string, mimeType?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.treeStoreMetadataForFileWithParameter(resourceId, path, mimeType, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
......@@ -161,22 +173,24 @@ export const TreeApiFactory = function (configuration?: Configuration, basePath?
* @summary This method retrieves the metadata
* @param {string} resourceId Id of a resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
treeGetMetadataWithParameter(resourceId: string, path?: string, options?: any): AxiosPromise<any> {
return localVarFp.treeGetMetadataWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
treeGetMetadataWithParameter(resourceId: string, path?: string, mimeType?: string, options?: any): AxiosPromise<any> {
return localVarFp.treeGetMetadataWithParameter(resourceId, path, mimeType, options).then((request) => request(axios, basePath));
},
/**
*
* @summary This method stores the metadata of the file
* @param {string} resourceId Id of the resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
treeStoreMetadataForFileWithParameter(resourceId: string, path?: string, options?: any): AxiosPromise<any> {
return localVarFp.treeStoreMetadataForFileWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
treeStoreMetadataForFileWithParameter(resourceId: string, path?: string, mimeType?: string, options?: any): AxiosPromise<any> {
return localVarFp.treeStoreMetadataForFileWithParameter(resourceId, path, mimeType, options).then((request) => request(axios, basePath));
},
};
};
......@@ -193,12 +207,13 @@ export class TreeApi extends BaseAPI {
* @summary This method retrieves the metadata
* @param {string} resourceId Id of a resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof TreeApi
*/
public treeGetMetadataWithParameter(resourceId: string, path?: string, options?: any) {
return TreeApiFp(this.configuration).treeGetMetadataWithParameter(resourceId, path, options).then((request) => request(this.axios, this.basePath));
public treeGetMetadataWithParameter(resourceId: string, path?: string, mimeType?: string, options?: any) {
return TreeApiFp(this.configuration).treeGetMetadataWithParameter(resourceId, path, mimeType, options).then((request) => request(this.axios, this.basePath));
}
/**
......@@ -206,12 +221,13 @@ export class TreeApi extends BaseAPI {
* @summary This method stores the metadata of the file
* @param {string} resourceId Id of the resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof TreeApi
*/
public treeStoreMetadataForFileWithParameter(resourceId: string, path?: string, options?: any) {
return TreeApiFp(this.configuration).treeStoreMetadataForFileWithParameter(resourceId, path, options).then((request) => request(this.axios, this.basePath));
public treeStoreMetadataForFileWithParameter(resourceId: string, path?: string, mimeType?: string, options?: any) {
return TreeApiFp(this.configuration).treeStoreMetadataForFileWithParameter(resourceId, path, mimeType, options).then((request) => request(this.axios, this.basePath));
}
}
......
......@@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
/**
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment