- How does the MW REST API handle per-endpoint documentation and examples?
- Does it provide some "framework" for it, like for the action api? (see examples for wbgetentities)
Description
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | WMDE-leszek | T302268 🟦 Initial set up of the boiler plate Wikibase REST API | |||
| Resolved | WMDE-leszek | T302306 🟦 Investigate MW endpoint documentation |
Event Timeline
Comment Actions
The MW REST API wiki page suggests to document endpoints on the extension's wiki page: https://www.mediawiki.org/wiki/API:REST_API/Extensions#Documenting_endpoints
There is a wiki template for it here: https://www.mediawiki.org/wiki/API:REST/Extensions/Documentation_Template
If I remember correctly what we wanted to find out is whether there is any inline documentation generated from the API handler classes, which there isn't. That's probably a good thing and just means that we'll create the documentation separate from the code, in our OpenAPI spec or elsewhere.