Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides the functionality to access a custom REST endpoint and process any resulting response objects.

Hierarchy

  • RestUtility

Index

Methods

getCustomRestEndpoint

  • getCustomRestEndpoint(endpointUrl: string, content: any, completeHandler: function, errorHandler: function, options: any): void
  • Retrieves an object from an arbitrary rest endpoint. This is an asynchronous method, you may provide delegates for completion or error information.

    Parameters

    • endpointUrl: string

      The Rest endpoint to retrieve the object from.

    • content: any
    • completeHandler: function

      The delegate that will be called when the operation has completed (even if an error occurs).

    • errorHandler: function

      The delegate that will be called if an error occurs.

        • (error: Error): void
        • Parameters

          • error: Error

          Returns void

    • options: any

      Same as {@link esri.request} (useProxy, usePost).

    Returns void