Skip to content

Feedback: use default baseOptions #38

@minond

Description

@minond

Every instantiation of the Configuration object requires the same baseOptions value of { headers: Accept: "application/vnd.mx.api.v1+json" }. For example:

const apiConfig = new Configuration({
  username: process.env.MX_CLIENT_ID,
  password: process.env.MX_API_KEY,
  basePath: process.env.MX_API_URL,
  baseOptions: {
    headers: {
      Accept: "application/vnd.mx.api.v1+json"
    }
  }
})

This library should set this default value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions