Skip to content
Snippets Groups Projects
Select Git revision
  • 73a7a2d01775c28f725a50b2747f4d4d747e8cbe
  • main default protected
  • Issue/3133-subProjectsChanges
  • dev protected
  • 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
  • Issue/2926-regAppLogin
  • Issue/2672-fixSfbPidPointing
  • Issue/2875-devcontainer
  • Issue/2401-advisoryServiceUI2
  • Issue/2445-extractedMetadata
  • Issue/2829-useHrefProperty
  • Issue/xxxx-configurableApiHostname
  • Issue/2627-addPidRecord
  • 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
  • v3.4.0
  • v3.3.2-package.0
  • v3.3.1
  • v3.3.0
  • v3.2.1
41 results

base.ts

Blame
  • 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.Tree
     * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
     *
     * The version of the OpenAPI document: 2.4.3
     * 
     *
     * 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-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".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);
        }
    }