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(Func<IDocument, IExecutionContext, TClient, Task<IEnumerable<KeyValuePair<string, object>>>> request)
Parameters
Name | Type | Description |
---|---|---|
request | Func |
A function with the request to make. |