Projekt

Obecné

Profil

Stáhnout (1.47 KB) Statistiky
| Větev: | Tag: | Revize:
1 3e6b15a7 Lukáš Vlček
/* tslint:disable */
2
/* eslint-disable */
3
/**
4
 * AnnotationTool
5
 * KIV/ASWI ZČU Plzeň, 2022
6
 *
7
 * The version of the OpenAPI document: 0.1.1
8
 * 
9
 *
10
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
 * https://openapi-generator.tech
12
 * Do not edit the class manually.
13
 */
14
15
16
import { Configuration } from "./configuration";
17
// Some imports not used depending on template conditions
18
// @ts-ignore
19
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
20
21
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
22
23
/**
24
 *
25
 * @export
26
 */
27
export const COLLECTION_FORMATS = {
28
    csv: ",",
29
    ssv: " ",
30
    tsv: "\t",
31
    pipes: "|",
32
};
33
34
/**
35
 *
36
 * @export
37
 * @interface RequestArgs
38
 */
39
export interface RequestArgs {
40
    url: string;
41
    options: AxiosRequestConfig;
42
}
43
44
/**
45
 *
46
 * @export
47
 * @class BaseAPI
48
 */
49
export class BaseAPI {
50
    protected configuration: Configuration | undefined;
51
52
    constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
53
        if (configuration) {
54
            this.configuration = configuration;
55
            this.basePath = configuration.basePath || this.basePath;
56
        }
57
    }
58
};
59
60
/**
61
 *
62
 * @export
63
 * @class RequiredError
64
 * @extends {Error}
65
 */
66
export class RequiredError extends Error {
67
    name: "RequiredError" = "RequiredError";
68
    constructor(public field: string, msg?: string) {
69
        super(msg);
70
    }
71
}