Skip to content
Snippets Groups Projects
Commit afd75f10 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Include new metadata api changes (coscine/issues#1804)

parent 85726fb1
No related tags found
1 merge request!11Update: Remove fixedvalue ap retrieval (coscine/issues#1804)
......@@ -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.2.0
* 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
......@@ -62,18 +100,14 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
/**
*
* @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);
......@@ -292,13 +326,12 @@ export const MetadataApiFp = function(configuration?: 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);
},
/**
......@@ -339,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);
},
......@@ -367,13 +400,12 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
/**
*
* @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));
},
/**
*
......@@ -410,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));
},
/**
......@@ -436,14 +468,13 @@ export class MetadataApi extends BaseAPI {
/**
*
* @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));
}
/**
......
......@@ -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.2.0
* The version of the OpenAPI document: 2.2.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -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.2.0
* The version of the OpenAPI document: 2.2.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -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.2.0
* The version of the OpenAPI document: 2.2.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -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.2.0
* The version of the OpenAPI document: 2.2.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment