As part of WE5.2 "By the end of Q4, 70% of Wikimedia web API endpoints will be supported by common infrastructure", research options to present documentation for APIs using this common infrastructure. This task description is a work in progress.
Assigned: @TBurmeister and @KBach
Timeframe: Q1 fiscal year 2025-2026
Goals
Create recommendations, including options and tradeoffs, for presenting documentation for Wikimedia APIs using common infrastructure developed as part of WE5.2.
Outcomes
As part of work on this task, we have created the following artifacts:
- API documentation strategy, outlining goals and plans for Wikimedia API technical documentation
- API documentation information architecture and content patterns, describing minimum viable API documentation. This also includes a style guide for a standard API changelog.
- Style guide for OpenAPI descriptions (OADs), with recommendations for language that should be used in OAD files that power OpenAPI explorers and other tooling
These artifacts will evolve over the coming months to accommodate requirements resulting from other API work.
We have also:
- conducted research into features and technical architectures of popular API documentation sites, which informed some of our work on the artifacts listed earlier
- supported the work on the standard API sandbox (T400174), including the process of deciding where the documentation and the sandbox should be hosted (T400183)
Work on API documentation continues in T405569: API docs work - Q2 and Q3 2025/26 and its subtasks.
Original scope
- APIs in scope for WE5.2 (restricted access)
- Recommendations for the new API documentation experience
- Style guide for reference documentation/OpenAPI definition descriptions
- API changelog
- API documentation standards and patterns
- Other API documentation content: tutorials, code samples, concept overviews (instructions on how to create + examples)
- ...
Note: Not all of this work will complete in Q1; some work might be started in this task and later moved to a separate task or hypothesis.
Project plan
- Research features and technical architecture of documentation websites for popular APIs
- Participate in the process of selecting the location for the new documentation (T400183)
- Clarify the available options and selection criteria
- Identify benefits and trade-offs
- Gather feedback
- Make a recommendation
- Decision made
- Research best practices for API reference documentation and OpenAPI description
- Investigate the limitations of the OpenAPI description (OAD) format itself
- Catalog current API reference documentation patterns
- MediaWiki REST API
- Wikimedia REST (RESTBase) API
- Liftwing
- Wikibase REST API
- Link Recommendation API
- Wikimedia Analytics API
- Wikimedia Enterprise API
- Identify OAD content best practices
- Write the OAD style guide
- Share the style guide for review
- Improve the style guide based on feedback
- Identify and document standard API documentation patterns
- API changelog
- Documentation content strategy (content migrations, future content work, deprecations, etc.)