Class ApiConfiguration

Hierarchy

  • Configuration
    • ApiConfiguration

Constructors

  • Parameters

    • Optionalparam: ConfigurationParameters

    Returns ApiConfiguration

Properties

apiKey?:
    | string
    | Promise<string>
    | ((name: string) => string)
    | ((name: string) => Promise<string>)

parameter for apiKey security

security name

Configuration

username?: string

parameter for basic security

Configuration

password?: string

parameter for basic security

Configuration

accessToken?:
    | string
    | Promise<string>
    | ((name?: string, scopes?: string[]) => string)
    | ((name?: string, scopes?: string[]) => Promise<string>)

parameter for oauth2 security

security name

oauth2 scope

Configuration

basePath?: string

override base path

Configuration

baseOptions?: any

base options for axios calls

Configuration

formDataCtor?: (new () => any)

The FormData constructor that will be used to create multipart form data requests. You can inject this here so that execution environments that do not support the FormData class can still run the generated client.

Type declaration

    • new (): any
    • The FormData constructor that will be used to create multipart form data requests. You can inject this here so that execution environments that do not support the FormData class can still run the generated client.

      Returns any

Methods

  • Check if the given MIME is a JSON MIME. JSON MIME examples: application/json application/json; charset=UTF8 APPLICATION/JSON application/vnd.company+json

    Parameters

    • mime: string

      MIME (Multipurpose Internet Mail Extensions)

    Returns boolean

    True if the given MIME is JSON, false otherwise.