Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
Loading items

Target

Select target project
  • coscine/frontend/libraries/api-client
1 result
Select Git revision
Loading items
Show changes
Commits on Source (4)
{
"name": "@coscine/api-client",
"version": "2.1.0",
"version": "2.2.0",
"description": "This project contains the generated api connection classes.",
"keywords": [
"coscine",
......
......@@ -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(/\/+$/, "");
/**
*
......