Skip to content
Snippets Groups Projects

Update: Remove fixedvalue ap retrieval (coscine/issues#1804)

Merged Benedikt Heinrichs requested to merge Issue/1804-fixedValueFix into dev
5 files
+ 53
99
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -4,7 +4,7 @@
* Coscine.Api.Metadata
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.1.1
* The version of the OpenAPI document: 2.2.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -52,6 +52,44 @@ export interface ApplicationProfile {
*/
mimeType?: string | null;
}
/**
* Bilingual labels
* @export
* @interface BilingualLabels
*/
export interface BilingualLabels {
/**
* English labels
* @type {Array<Label>}
* @memberof BilingualLabels
*/
en?: Array<Label> | null;
/**
* German labels
* @type {Array<Label>}
* @memberof BilingualLabels
*/
de?: Array<Label> | null;
}
/**
* Label of a vocabulary entry
* @export
* @interface Label
*/
export interface Label {
/**
* Name of the application profile
* @type {string}
* @memberof Label
*/
name?: string | null;
/**
* Name of the application profile
* @type {string}
* @memberof Label
*/
value?: string | null;
}
/**
* MetadataApi - axios parameter creator
@@ -59,62 +97,17 @@ export interface ApplicationProfile {
*/
export const MetadataApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary Returns the application profile with the fixed values for the given resource.
* @param {string} profile Url of the application profile
* @param {string} resourceId Id of the resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
metadataGetApplicationProfileComplete: async (profile: string, resourceId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'profile' is not null or undefined
assertParamExists('metadataGetApplicationProfileComplete', 'profile', profile)
// verify required parameter 'resourceId' is not null or undefined
assertParamExists('metadataGetApplicationProfileComplete', 'resourceId', resourceId)
const localVarPath = `/Metadata/profiles/{profile}/{resourceId}`
.replace(`{${"profile"}}`, encodeURIComponent(String(profile)))
.replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
// 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;
// authentication JWT token required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary This method returns instances.
* @param {string} projectId Id of the project
* @param {string} className class name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
metadataGetClassInstances: async (projectId: string, className: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'projectId' is not null or undefined
assertParamExists('metadataGetClassInstances', 'projectId', projectId)
metadataGetClassInstances: async (className: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'className' is not null or undefined
assertParamExists('metadataGetClassInstances', 'className', className)
const localVarPath = `/Metadata/instances/{projectId}/{className}`
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
const localVarPath = `/Metadata/instances/{className}`
.replace(`{${"className"}}`, encodeURIComponent(String(className)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -330,28 +323,15 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
export const MetadataApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration)
return {
/**
*
* @summary Returns the application profile with the fixed values for the given resource.
* @param {string} profile Url of the application profile
* @param {string} resourceId Id of the resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async metadataGetApplicationProfileComplete(profile: string, resourceId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.metadataGetApplicationProfileComplete(profile, resourceId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary This method returns instances.
* @param {string} projectId Id of the project
* @param {string} className class name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async metadataGetClassInstances(projectId: string, className: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.metadataGetClassInstances(projectId, className, options);
async metadataGetClassInstances(className: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BilingualLabels>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.metadataGetClassInstances(className, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -392,7 +372,7 @@ export const MetadataApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async metadataGetVocabulary(path: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
async metadataGetVocabulary(path: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BilingualLabels>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.metadataGetVocabulary(path, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
@@ -417,27 +397,15 @@ export const MetadataApiFp = function(configuration?: Configuration) {
export const MetadataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = MetadataApiFp(configuration)
return {
/**
*
* @summary Returns the application profile with the fixed values for the given resource.
* @param {string} profile Url of the application profile
* @param {string} resourceId Id of the resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
metadataGetApplicationProfileComplete(profile: string, resourceId: string, options?: any): AxiosPromise<any> {
return localVarFp.metadataGetApplicationProfileComplete(profile, resourceId, options).then((request) => request(axios, basePath));
},
/**
*
* @summary This method returns instances.
* @param {string} projectId Id of the project
* @param {string} className class name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
metadataGetClassInstances(projectId: string, className: string, options?: any): AxiosPromise<any> {
return localVarFp.metadataGetClassInstances(projectId, className, options).then((request) => request(axios, basePath));
metadataGetClassInstances(className: string, options?: any): AxiosPromise<BilingualLabels> {
return localVarFp.metadataGetClassInstances(className, options).then((request) => request(axios, basePath));
},
/**
*
@@ -474,7 +442,7 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
metadataGetVocabulary(path: string, options?: any): AxiosPromise<any> {
metadataGetVocabulary(path: string, options?: any): AxiosPromise<BilingualLabels> {
return localVarFp.metadataGetVocabulary(path, options).then((request) => request(axios, basePath));
},
/**
@@ -497,30 +465,16 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
* @extends {BaseAPI}
*/
export class MetadataApi extends BaseAPI {
/**
*
* @summary Returns the application profile with the fixed values for the given resource.
* @param {string} profile Url of the application profile
* @param {string} resourceId Id of the resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MetadataApi
*/
public metadataGetApplicationProfileComplete(profile: string, resourceId: string, options?: any) {
return MetadataApiFp(this.configuration).metadataGetApplicationProfileComplete(profile, resourceId, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary This method returns instances.
* @param {string} projectId Id of the project
* @param {string} className class name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MetadataApi
*/
public metadataGetClassInstances(projectId: string, className: string, options?: any) {
return MetadataApiFp(this.configuration).metadataGetClassInstances(projectId, className, options).then((request) => request(this.axios, this.basePath));
public metadataGetClassInstances(className: string, options?: any) {
return MetadataApiFp(this.configuration).metadataGetClassInstances(className, options).then((request) => request(this.axios, this.basePath));
}
/**
Loading