Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ODataCreateRequestConfig<EntityT>

OData create request configuration for an entity type.

Type parameters

  • EntityT: Entity

    Type of the entity to setup a request for

Hierarchy

  • ODataRequestConfig
    • ODataCreateRequestConfig

Index

Constructors

constructor

  • Creates an instance of ODataRequest.

    Parameters

    • entityConstructor: Constructable<EntityT>

      Constructor type of the entity to create a configuration for

    Returns ODataCreateRequestConfig

Properties

childField

childField: Link<Entity, EntityT>

Field that links the parent entity class to the child entity class.

customServicePath

customServicePath: string

defaultServicePath

defaultServicePath: string

default path of the according service

entityConstructor

entityConstructor: Constructable<EntityT>

Constructor type of the entity to create a configuration for

method

HTTP method of the request

parentKeys

parentKeys: MapType<any>

Keys of the parent of the entity to create. Defined only when attempting to create child entities.

payload

payload: MapType<any>

Accessors

customHeaders

  • get customHeaders(): MapType<string>
  • set customHeaders(headers: MapType<string>): void
  • Returns MapType<string>

  • Parameters

    • headers: MapType<string>

    Returns void

Methods

addCustomHeaders

  • addCustomHeaders(headers: MapType<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: MapType<string>

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

    Returns void

Protected prependDollarToQueryParameters

  • prependDollarToQueryParameters(params: MapType<any>): MapType<any>
  • Parameters

    • params: MapType<any>

    Returns MapType<any>

queryParameters

  • queryParameters(): MapType<any>
  • Returns MapType<any>

resourcePath

  • resourcePath(): string
  • Returns string

Protected resourcePathAsChild

  • resourcePathAsChild(): string
  • Returns string