getInstances Method

Get multiple strongly typed instances.

getInstances<T extends WsgInstance<T>>(requestContext: AuthorizedClientRequestContext, typedConstructor: () => T, relativeUrlPath: string, queryOptions?: RequestQueryOptions, httpRequestOptions?: HttpRequestOptions): Promise<T[]>

Parameter Type Description
requestContext AuthorizedClientRequestContext The client request context
typedConstructor () => T Used to construct the resulting instances from the response.
relativeUrlPath string Relative path to the REST resource.
queryOptions RequestQueryOptions Query options.
httpRequestOptions HttpRequestOptions Additional options for the HTTP request.

Returns - Promise<T[]>

Array of strongly typed instances.

Defined in

Last Updated: 12 June, 2024