Fetches the data from the given endpoint and returns it.
The endpoint to fetch from.
The parameters to pass to the endpoint.
Optional
requestOptions: RequestOptions<R>Any additional options to pass to fetch.
The response from the endpoint.
Fetches the data from the given endpoint and returns it.
The endpoint to fetch from.
Optional
params: ExtractParams<S>Optional parameters to pass to the endpoint.
Optional
requestOptions: RequestOptions<R>Any additional options to pass to fetch.
The response from the endpoint.
Fetches the data from the given endpoint and returns it.
Param: endpoint
The endpoint to fetch from.
Param: params
The parameters to pass to the endpoint.
Param: requestOptions
Any additional options to pass to fetch.
Returns
The response from the endpoint.