Configuration

testapi.Configuration

Constructors

constructor

+ new Configuration(param?: ConfigurationParameters): Configuration

Parameters:

NameTypeDefault value
paramConfigurationParameters{}

Returns: Configuration

Properties

accessToken

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

parameter for oauth2 security

param security name

param oauth2 scope

memberof Configuration


apiKey

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

parameter for apiKey security

param security name

memberof Configuration


baseOptions

Optional baseOptions: any

base options for axios calls

memberof Configuration


basePath

Optional basePath: string

override base path

memberof Configuration


formDataCtor

Optional formDataCtor: () => 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 Configuration(): any

Returns: any


password

Optional password: string

parameter for basic security

memberof Configuration


username

Optional username: string

parameter for basic security

memberof Configuration

Methods

isJsonMime

isJsonMime(mime: string): boolean

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:

NameTypeDescription
mimestringMIME (Multipurpose Internet Mail Extensions)

Returns: boolean

True if the given MIME is JSON, false otherwise.

Found a mistake? Email us, and we'll send you a free t-shirt!

Enroll in beta

Request invite to our private Beta program for developers to join the waitlist. No spam, we promise.