Page MenuHomePhabricator

Create user guide for generating an OpenAPI spec from within the MediaWiki REST API framework
Open, In Progress, HighPublic5 Estimated Story Points

Description

Description

As the REST framework matures in support for automated documentation and federated ownership, we need to ensure the expected processes are well documented. This is especially important and relevant as we begin asking more teams to onboard to our systems and self-manage their API modules.

Conditions of acceptance

  • Create a user guide for how to generate an OpenAPI spec within the REST Framework.
  • The instructions should be guided by and emphasize the fields required by linting.
  • Include instructions for how to define examples, where needed:
    • How to define request parameter examples.
    • How and where to define JSON response examples.
  • Include instructions for how to generate a spec locally, then test it using the linter tool.
  • Review guide with team.
  • Publish on MediaWIki --> Consult with Halley & Alex for where to put it in the IA (potentially a new section for "API builders" or something similar)

Details

Due Date
Tue, Jul 28, 7:00 AM

Event Timeline

HCoplin-WMF set the point value for this task to 5.May 21 2026, 3:47 PM

Notes from estimation:

  • OAD styleguide: https://www.mediawiki.org/wiki/Documentation/API_documentation/Reference
  • Are there opportunities to standardize objects & descriptions?
    • Somewhat constrained by backwards compatibility with existing endpoints, which frequently have subtle differences in naming and structure conventions; we are going deeper in reusability with vNext APIs
    • Consider looking at/pitching specific examples that we can follow up on; we are considering it out of the scope of this story for now though.
  • We may run into some edge cases here -- for example, we mostly have JSON responses but not universally. Deprecation information could be another topic.
  • Request parameters: https://phabricator.wikimedia.org/T420988#11941501
BPirkle subscribed.
TBurmeister subscribed.

Some initial documentation has been started at: https://www.mediawiki.org/wiki/API:REST_API/Extensions/Rest_Sandbox/Documentation_display
I can work on updating and expanding this page, but I'm not connected with MWI's sprint cycle, so LMK if that's problematic at all...

aaron set Due Date to Tue, Jul 28, 7:00 AM.Tue, Jul 14, 6:47 PM
TBurmeister changed the task status from Open to In Progress.Wed, Jul 15, 6:59 PM