https://bugzilla.wikimedia.org/show_bug.cgi?id=38190

       Web browser: ---
             Bug #: 38190
           Summary: MediaWiki API's patrol module's documentation doesn't
                    indicate that token parameter is required
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Looking at <https://www.mediawiki.org/w/api.php>, the auto-generated
documentation for action=patrol reads:

---
* action=patrol *
  Patrol a page or revision

This module requires read rights
This module requires write rights
This module only accepts POST requests
Parameters:
  token               - Patrol token obtained from list=recentchanges
  rcid                - Recentchanges ID to patrol
                        This parameter is required
---

The token parameter is required with action=patrol, so it should be marked as
such (with the text "This parameter is required").

This same problem (token parameter not being marked as required) may apply to a
few other parts of the MediaWiki API's auto-generated documentation. For now,
I'm focused on action=patrol.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to