This is the base class for all generated API classes.

Hierarchy

  • BaseAPI

Constructors

Properties

configuration: Configuration = DefaultConfig
middleware: Middleware[]
jsonRegex: RegExp = ...

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

    Returns

    True if the given MIME is JSON, false otherwise.

    Parameters

    • mime: undefined | null | string

      MIME (Multipurpose Internet Mail Extensions)

    Returns boolean