Skip to content
Snippets Groups Projects
Select Git revision
  • ede2ac032d4d1038c97a20a8276edc50127d62cb
  • main default protected
  • dev protected
  • Test/xxxx-shaclForm
  • Issue/3245-maintenanceAPIUpdate
  • Issue/3242-UserDeletionOnProfile
  • Issue/3187-VersionStorage
  • Issue/3179-sortDataPublicationServiceList
  • Issue/3193-processingOfPersonalDataConsent
  • Issue/2450-AdminPage
  • Issue/3215-lifecycle
  • Issue/3133-subProjectsChanges
  • Issue/2489-addNotificationManagement
  • Issue/3085-useNewApiClient
  • Issue/3043-DataStorageNrwResource
  • Issue/3011-maintenanceMode
  • Issue/2446-addingResponsibleOrganization
  • Issue/2900-removeInsituteField
  • Issue/2981-dataPubInDb
  • Issue/2881-messageController
  • Issue/2921-changesToDataPublicationFeature
  • v3.21.0
  • v3.20.0
  • v3.19.0
  • v3.18.0
  • v3.17.0
  • v3.16.0
  • v3.15.0
  • v3.14.0
  • v3.13.0
  • v3.12.0
  • v3.11.0
  • v3.10.0
  • v3.9.0
  • v3.8.0
  • v3.7.0
  • v3.6.0
  • v3.5.0
  • v3.4.3
  • v3.4.2
  • v3.4.1
41 results

base.ts

Blame
  • Petar Hristov's avatar
    Petar Hristov authored and Benedikt Heinrichs committed
    c1cfbf0e
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    base.ts 1.57 KiB
    /* tslint:disable */
    /* eslint-disable */
    /**
     * Coscine.Api.Blob
     * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
     *
     * The version of the OpenAPI document: 3.0.1
     * 
     *
     * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
     * https://openapi-generator.tech
     * Do not edit the class manually.
     */
    
    
    import { Configuration } from "./configuration";
    // Some imports not used depending on template conditions
    // @ts-ignore
    import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
    
    export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Blob".replace(/\/+$/, "");
    
    /**
     *
     * @export
     */
    export const COLLECTION_FORMATS = {
        csv: ",",
        ssv: " ",
        tsv: "\t",
        pipes: "|",
    };
    
    /**
     *
     * @export
     * @interface RequestArgs
     */
    export interface RequestArgs {
        url: string;
        options: any;
    }
    
    /**
     *
     * @export
     * @class BaseAPI
     */
    export class BaseAPI {
        protected configuration: Configuration | undefined;
    
        constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
            if (configuration) {
                this.configuration = configuration;
                this.basePath = configuration.basePath || this.basePath;
            }
        }
    };
    
    /**
     *
     * @export
     * @class RequiredError
     * @extends {Error}
     */
    export class RequiredError extends Error {
        name: "RequiredError" = "RequiredError";
        constructor(public field: string, msg?: string) {
            super(msg);
        }
    }