Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ODataUrlBuilder

Helper class to build OData Urls

Hierarchy

  • ODataUrlBuilder

Index

Properties

Static ODATA_PARAMS

ODATA_PARAMS: string[] = ['select','expand','orderby','top','skip','filter','format','inlinecount',]

List of a valid OData parameters

Methods

Static buildUrlParamString

  • Method to build proper parameter string to OData requests based on the given repository configuration and option Object.

    Checks whether a given parameter is standard OData param or not and based on this information this params get the '$' sign.

    Type parameters

    • T

    Parameters

    • config: RepositoryConfiguration

      Represents the current Repository configuration for default select, expand, etc... options

    • Optional options: ODataParams<T>

      Represents an ODataOptions obejct based through the IODataOptions interface. Holds the possible url parameters as properties.

    Returns string

    String with the url params in the correct format e.g. '$select=DisplayName,Index'&$top=2&metadata=no'.

Static Private combineODataFieldParameters

Generated using TypeDoc