Page MenuHomePhabricator

๐ŸŸฆ Initial set up of the boiler plate Wikibase REST API
Closed, ResolvedPublic5 Estimated Story Points

Description

In scope:

  • set up autoloading for rest api namespace
  • initial test set up: wire up unit tests with mediawiki phpunit runner, set up initial end to end test
  • generate swagger autodocs
  • Investigate/explore what MW rest api does about per endpoint documentation and examples (does mw rest api provide some "framework" for it like for the "action api")
  • setup linting: stricter linting than the rest of Wikibase (e.g. enforce strict types in all REST API)
  • set up a separate ServiceWiring.php for /repo/rest-api
  • ...

Likely to not be part of this:

  • automatic architecture checks (note the list of possible tools that could be used in T286029)
  • set up contract testing
    • create the initial api (empty) spec
  • publish autodocs

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptFeb 22 2022, 11:19 AM
WMDE-leszek set the point value for this task to 5.Feb 22 2022, 11:21 AM
WMDE-leszek updated the task description. (Show Details)

Change 764731 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] RA: Set up dir and namespaces

https://gerrit.wikimedia.org/r/764731

Task Breakdown notes:

Ollie.Shotton_WMDE renamed this task from Initial set up of the boiler plate Wikibase REST API to ๐ŸŸฆ Initial set up of the boiler plate Wikibase REST API.Feb 22 2022, 3:16 PM