Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OpenApiRequestBuilder<ApiT, FnT>

experimental

This API is experimental and might change in newer versions. Use with caution. Generic request builder for building and executing requests based on apis generated by the OpenAPI generator.

Type parameters

  • ApiT

    Interface of the generated api. All properties of the interface will be treated as functions.

  • FnT: keyof ApiT

    Literal string type of the function name, must be a key of ApiT and represent a function.

Hierarchy

  • OpenApiRequestBuilder

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

fn

fn: FnT

Name of the function represented in thie request builder.

Methods

execute

executeRaw

withCustomHeaders

  • withCustomHeaders(headers: Record<string, string>): this