Page MenuHomePhabricator

Create centralized tests for supported media types in all edit routes
Closed, ResolvedPublic

Description

Currently, Wikibase REST API have a centralized test file for checking unsupported media type requests in repo/rest-api/tests/mocha/api-testing/UnsupportedMediaTypeTest.js.

We want to centralize the tests for the media types that the REST API supports.

For PATCH requests, it supports application/json and application/json-patch+json.

Wikibase REST API supports application/json for the remaining edit requests.

Event Timeline

If it turns out not necessary to test application/json we can focus only on the PATCH requests.

Change #1072866 had a related patch set uploaded (by Muhammad Jaziraly; author: Muhammad Jaziraly):

[mediawiki/extensions/Wikibase@master] REST: Test supported media types in edit routes

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

Change #1072866 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Test supported media types in edit routes

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