core.medplumclient.get
Home > @medplum/core > MedplumClient > get
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 | (Optional) Optional fetch options. |
Returns:
Promise to the response content.