ConfigurationApi - functional programming interface

  • Parameters

    Returns {
        getConfiguration(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfiguration>)>;
        getDefaultMetadataOptions(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetadataOptions>)>;
        getNamedConfiguration(key: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
        updateConfiguration(serverConfiguration: ServerConfiguration, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        updateNamedConfiguration(key: string, body: any, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
    }

    • getConfiguration:function
    • getDefaultMetadataOptions:function
      • Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetadataOptions>)>

        Gets a default MetadataOptions object.

    • getNamedConfiguration:function
      • Parameters

        • key: string

          Configuration key.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>

        Gets a named configuration.

    • updateConfiguration:function
      • Parameters

        • serverConfiguration: ServerConfiguration

          Configuration.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Updates application configuration.

    • updateNamedConfiguration:function
      • Parameters

        • key: string

          Configuration key.

        • body: any

          Configuration.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Updates named configuration.