Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateRequestBuilderBase<EntityT>

Abstract create request class holding the parts shared in OData v2 and v4.

Type parameters

  • EntityT: EntityBase

    Type of the entity to be created

Hierarchy

Implements

  • EntityIdentifiable<EntityT>

Index

Constructors

constructor

Properties

Readonly _entity

_entity: EntityT

Entity to be created

Readonly _entityConstructor

_entityConstructor: Constructable<EntityT>

Constructor type of the entity to be created

Readonly deserializer

deserializer: EntityDeserializer

Readonly odataUri

odataUri: ODataUri

requestConfig

requestConfig: ODataCreateRequestConfig<EntityT>

Request configuration to initialize with

Readonly responseDataAccessor

responseDataAccessor: ResponseDataAccessor

Readonly serializer

serializer: EntitySerializer

Accessors

entity

  • get entity(): EntityT

Methods

asChildOf

  • asChildOf<ParentEntityT>(parentEntity: ParentEntityT, linkField: Link<ParentEntityT, EntityT>): this

build

execute

prepare

  • prepare(): this

relativeUrl

  • relativeUrl(): string

url

withCustomHeaders

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

withCustomQueryParameters

  • withCustomQueryParameters(queryParameters: Record<string, string>): this

withCustomServicePath

  • withCustomServicePath(servicePath: string): this