getInstances MethodProtected

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

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

Parameter Type Description
requestContext AuthorizedClientRequestContext Client request context
typedConstructor object Constructor function for the type
relativeUrlPath string Relative path to the REST resource.
queryOptions RequestQueryOptions Query options.

Returns - Array of strongly typed instances.

Defined in

Last Updated: 08 January, 2020