Options
All
  • Public
  • Public/Protected
  • All
Menu

A class for building ApiRequest(s)

Type parameters

Hierarchy

  • ApiRequestBuilder

Index

Constructors

constructor

  • new ApiRequestBuilder<M, P, KH, Q, R, T>(_request: T): ApiRequestBuilder<M, P, KH, Q, R, T>

Methods

get

  • get(): T

withHeaders

withQuery

  • Adds query parameters

    Type parameters

    • P1

    • Q1: string

    Parameters

    • query: (params: P1) => Record<Q1, string>
        • (params: P1): Record<Q1, string>
        • Parameters

          • params: P1

          Returns Record<Q1, string>

    Returns ApiRequestBuilder<M, P & P1, KH, Q | Q1, R, ApiRequestTypeForMethod<M, P & P1, KH, Q | Q1, R>>

withResponseDecoder

Static ofGet

Static ofPost

Static ofPut

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Class with type parameter
  • Method
  • Enumeration
  • Static method

Generated using TypeDoc