Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ODataFunctionImportRequestConfig<ParametersT>

Type parameters

  • ParametersT

Hierarchy

Index

Constructors

constructor

Properties

customServicePath

customServicePath: string

Readonly defaultServicePath

defaultServicePath: string

default path of the according service

Readonly functionImportName

functionImportName: string

The name of the function import.

method

HTTP method of the request

Protected oDataUri

oDataUri: ODataUri

parameters

parameters: FunctionImportParameters<ParametersT>

Object containing the parameters with a value and additional meta information

payload

payload: Record<string, any> | string

Accessors

contentType

  • get contentType(): any

customHeaders

  • get customHeaders(): Record<string, string>
  • set customHeaders(headers: Record<string, string>): void

customQueryParameters

  • get customQueryParameters(): Record<string, string>
  • set customQueryParameters(queryParameters: Record<string, string>): void

Methods

addCustomHeaders

  • addCustomHeaders(headers: Record<string, string>): void
  • Add custom headers to the request. This is useful in case you want to provide your own authorization headers for example.

    Parameters

    • headers: Record<string, string>

      Key-value pairs where the key is the name of a header property and the value is the respective value

    Returns void

addCustomQueryParameters

  • addCustomQueryParameters(queryParameters: Record<string, string>): void
  • Add custom query parameters to the request. This is useful in case your OData service allows non-standard query parameters.

    Parameters

    • queryParameters: Record<string, string>

      Key-value pairs where the key is the name of a query parameter and the value is the respective value

    Returns void

Protected prependDollarToQueryParameters

  • prependDollarToQueryParameters(params: Record<string, any>): Record<string, any>

Abstract queryParameters

  • queryParameters(): Record<string, any>

Abstract resourcePath

  • resourcePath(): string

Object literals

Readonly defaultHeaders

defaultHeaders: object

accept

accept: string = "application/json"

content-type

content-type: string = "application/json"