Page MenuHomePhabricator

Port CampaignEvents REST API documentation to swagger
Open, Stalled, Needs TriagePublic

Description

Once the REST sandbox leaves the experimental/beta status (see https://www.mediawiki.org/wiki/MediaWiki_Interfaces_Team/Feature_Feedback/REST_Sandbox), we should port our existing API documentation to swagger/openAPI specs and delete the wikipage in favour of linking to the REST sandbox.

Event Timeline

I think the REST sandbox is still considered experimental, so it may be a bit too early to migrate, but the documentation is visible on testwiki: https://test.wikipedia.org/w/index.php?api=mw-extra&title=Special%3ARestSandbox and it can be enabled locally by setting:

$wgRestSandboxSpecs = [
	'mw' => [
		'url' => $wgScriptPath . '/rest.php/specs/v0/module/-',
		'name' => 'MediaWiki REST API',
	]
];
Daimona changed the task status from Open to Stalled.Jan 7 2025, 7:16 PM

Marking as stalled due to the REST sandbox still being considered experimental as per https://www.mediawiki.org/wiki/Help:RestSandbox.