There does not seem to be much purpose for action=compare to exist: it does the same thing the diff options do for prop=revisions, just with less options. The only thing prop=revisions can't do out of the box is to compare two pages without knowing their revision id, but if that's actually useful, we should just add difftotitle/difftopageid as options to revisions. compare should be deprecated and eventually removed.
Description
Description
Related Objects
Related Objects
- Mentioned In
- T216482: Remove deprecation notice for parsing and diff options in ApiQueryRevisionsBase
T164106: Deprecate parsing and diff options in ApiQueryRevisionsBase - Mentioned Here
- T164106: Deprecate parsing and diff options in ApiQueryRevisionsBase
T31223: Querying for rvdiffto=prev fails for many revids: "notcached"
T30047: Allow diff of deleted revisions with api
T29185: API: Add Special:ComparePages
Event Timeline
Comment Actions
https://en.wikipedia.org/w/api.php?modules=compare|query+revisions
The api action=compare is equivalent to web UI Special:ComparePages
This action makes it clear, that you have (normally) do one request to get one diff
Was added with T29185
Comment Actions
I'd actually rather go the other way and remove diffing from prop=revisions. The parameters for diffing in prop=revisions work strangely if you're not fetching a single revision, and it'll probably get more confusing when we try to make T30047 work.
Comment Actions
T31223: Querying for rvdiffto=prev fails for many revids: "notcached" is another reason prop=revisions diff is weird and not so great.