Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServiceClient

Package version

class

Initializes a new instance of the ServiceClient.

Hierarchy

Index

Constructors

constructor

  • The ServiceClient constructor

    constructor

    Parameters

    Returns ServiceClient

Properties

Protected Optional baseUri

baseUri: undefined | string

If specified, this is the base URI that requests will be made against for this ServiceClient. If it is not specified, then all OperationSpecs must contain a baseUrl property.

Protected Optional requestContentType

requestContentType: undefined | string

The default request content type for the service. Used if no requestContentType is present on an OperationSpec.

Methods

sendOperationRequest

  • Send an HTTP request that is populated using the provided OperationSpec.

    Parameters

    • operationArguments: OperationArguments

      The arguments that the HTTP request's templated values will be populated from.

    • operationSpec: OperationSpec

      The OperationSpec to use to populate the httpRequest.

    • Optional callback: ServiceCallback<any>

      The callback to call when the response is received.

    Returns Promise<RestResponse>

sendRequest

Generated using TypeDoc