Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ODataGetAllRequestConfig<EntityT>

OData getAll request configuration for an entity type.

Type parameters

  • EntityT: Entity

    Type of the entity to setup a request for

Hierarchy

  • ODataRequestConfig
    • ODataGetAllRequestConfig

Implements

  • WithGetAllRestrictions<EntityT>

Index

Constructors

constructor

  • Creates an instance of ODataGetAllRequestConfig.

    Parameters

    • entityConstructor: Constructable<EntityT>

      Constructor type of the entity to create a configuration for

    Returns ODataGetAllRequestConfig

Properties

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

filter

filter: Filterable<EntityT>

method

HTTP method of the request

orderBy

orderBy: Array<Orderable<EntityT>>

payload

payload: MapType<any>

selects

selects: Array<Selectable<EntityT>>

skip

skip: number

top

top: number

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