getInstances MethodProtected

Used by clients to get strongly typed instances from standard WSG REST queries that return EC JSON instances.

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

Parameter Type Description
requestContext AuthorizedClientRequestContext Client request context
typedConstructor () => T Constructor function for the type
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: 11 June, 2024