OData request configuration for an entity type.

Type Param: EntityT

Type of the entity to setup a request for.

Type Parameters

Constructors

Properties

Accessors

  • get destination(): undefined | HttpDestination
  • Returns undefined | HttpDestination

  • set destination(dest): void
  • Parameters

    Returns void

Methods

  • Get all custom headers.

    Returns Record<string, any>

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

  • Get all default headers. If custom headers are set, those take precedence.

    Returns Record<string, any>

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

  • Get the eTag related headers, e.g. if-match.

    Returns Record<string, any>

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

  • Execute the given request and return the according promise.

    Returns Promise<HttpResponse>

    Promise resolving to the requested data.

  • Create object containing all headers, including custom headers for the given request.

    Returns Promise<OriginOptions>

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

  • Specifies whether the destination needs a specific authentication or not.

    Returns boolean

    A boolean value that specifies whether the destination needs authentication or not.

  • Get query parameters as string. Leads with ? if there are parameters to return.

    Returns string

    Query parameter string.

  • Returns the relative URL to a specific OData resource.

    Parameters

    • Optional includeBasePath: boolean

      Whether or not to include the base path in the URL.

    Returns string

    The relative URL of the resource.

  • Returns the service URL relative to the url of the destination for a given OData request.

    Returns string

    The relative URL of the service the given entity belongs to.

  • Constructs a URL relative to the destination.

    Parameters

    • Optional includeBasePath: boolean

      Whether or not to include the base path in the URL.

    • Optional includeQueryParameters: boolean

      Whether or not to include the query parameters in the URL.

    Returns string

    The relative URL for the request.

  • Returns the URL to a specific OData .resource, i.e. the entity collection.

    Returns string

    The URL of the resource.

  • Returns the service URL for a given OData request.

    Returns string

    The URL of the service the given entity belongs to.

  • Constructs an absolute URL for the given request.

    Returns string

    The absolute URL for the request.

    Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.