Parsoid needs the wikifunctions API to support these capabilities:
- Issue batch precompute requests for a set of wikifunction calls ( T373252 ) - the API should specify the request format. Parsoid doesn't expect any response for these calls
- Issue a batch request for a set of wikifunction calls - the API should specify the request and response format. The API might need to support a query param that lets Parsoid specify a max latency within which it expects a response. For individual calls in the batch where the result may not be available with the requested latency, Parsoid will inject a placeholder. We need to work out whether Wikifunctions will return a timeout response for such calls, or return a custom placeholder.
For each of these requirements, dependent subtasks will be filed for the API endpoints.