Submits a request to the API. This allows you to incorporate data from the execution context and current document in your request.
- Namespace
- Statiq
.Core - Containing Type
- ReadApi
<TClient>
Syntax
public ReadApi<TClient> WithRequest(string key, Func<IDocument, IExecutionContext, TClient, Task<object>> request)
Parameters
Name | Type | Description |
---|---|---|
key | string | The metadata key in which to store the return value of the request function. |
request | Func |
A function with the request to make. |