The Add a dashboard widget tutorial explains how to call the work item REST API using a VSS.require("TFS/WorkItemTracking/RestClient")
d rest client.
I want to do the same, but for the Wiki Rest API. There certainly is a scope for this: vso.wiki
.
However, I cannot find the equivalent of "TFS/WorkItemTracking/RestClient"
for wiki. Maybe it is as simple as "TFS/Wiki/RestClient"
, but even if it was, what are the names and parameters of the functions I can use? I don't find that documented anywhere, and I don't want to have to figure that out by trial-and-error, each time publishing a new extension and seeing if it works.
And looking at REST Clients, there does not even seem to be a Wiki Rest Client.
So how can I access the Wiki Rest API from an Azure DevOps extension? Is there perhaps an example somewhere, that google has been successful in hiding from me?
N.B. I do know about the REST API Specs, but the mapping to REST client is not self-evident and apparently.
I stumbled upon Azure DevOps Web API clients and contracts, however, a brief grep revealed it does not contain the latest and greatest (pre-release) "pagesBatch" feature, and I did not find a relevant branch / tag either.