Home Reference Source
import {CustomEndpoint} from './core/endpoint.js'
public class | source

CustomEndpoint

Executes a custom endpoint.

Static Method Summary

Static Public Methods
public static

execute(endpoint: string, args: Object, options: Object): Promise

Execute a custom endpoint.

Constructor Summary

Public Constructor
public

Static Public Methods

public static execute(endpoint: string, args: Object, options: Object): Promise source

Execute a custom endpoint.

Params:

NameTypeAttributeDescription
endpoint string

Endpoint to execute.

args Object
  • optional

Command arguments

options Object
  • optional
  • default: {}

Options

options.properties Properties
  • optional

Custom properties to send with the request.

options.timeout Number
  • optional

Timeout for the request.

Return:

Promise

Promise

Public Constructors

public constructor() source

Throw:

KinveyError

Not allowed to create an instance of the this class.