Class AuthorizationApi

Hierarchy (view full)

Constructors

Properties

configuration: Configuration = DefaultConfig

Methods

  • Delete API key for a user Delete cwmsData auth keys with keyName

    Parameters

    Returns Promise<ApiKey>

  • View all keys for the current user Get cwmsData auth keys

    Parameters

    Returns Promise<ApiKey[]>

  • View all keys for the current user Get cwmsData auth keys

    Parameters

    Returns Promise<ApiResponse<ApiKey[]>>

  • View specific key Get cwmsData auth keys with keyName

    Parameters

    Returns Promise<ApiKey>

  • 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.

  • Create a new API Key for user. The randomly generated key is returned to the caller. A provided key will be ignored. Post cwmsData auth keys

    Parameters

    Returns Promise<ApiKey>

  • Create a new API Key for user. The randomly generated key is returned to the caller. A provided key will be ignored. Post cwmsData auth keys

    Parameters

    Returns Promise<ApiResponse<ApiKey>>

  • Parameters

    Returns Promise<Response>

  • Type Parameters

    Parameters

    • this: T
    • Rest ...postMiddlewares: ((context) => Promise<void | Response>)[]

    Returns T

  • Type Parameters

    Parameters

    • this: T
    • Rest ...preMiddlewares: ((context) => Promise<void | FetchParams>)[]

    Returns T