core.medplumclient.get | Medplum

MedplumClient.get() method

Makes an HTTP GET request to the specified URL.

This is a lower level method for custom requests. For common operations, we recommend using higher level methods such as readResource(), search(), etc.

Signature:

get<T = any>(url: URL | string, options?: MedplumRequestOptions): ReadablePromise<T>;

Parameters

Parameter Type Description
url URL | string The target URL.
options MedplumRequestOptions (Optional) Optional fetch options.

Returns:

ReadablePromise

Promise to the response content.