Base class that should be used (derived from) to make requests to VSS REST apis

Constructors

Properties

basePath: string
baseUrl: string
restClient: RestClient

Methods

  • Sets a promise that is waited on before any requests are issued. Can be used to asynchronously set the request url and auth token manager.

    Parameters

    • promise: Promise<any>

    Returns void

  • Parameters

    • routeTemplate: string
    • area: string
    • resource: string
    • routeValues: any
    • OptionalqueryParams: any

    Returns string

  • Gets the route template for a resource based on its location ID and negotiates the api version

    Parameters

    • apiVersion: string
    • area: string
    • locationId: string
    • routeValues: any
    • OptionalqueryParams: any

    Returns Promise<ClientVersioningData>