diff options
author | daniel <dkinzler@wikimedia.org> | 2023-10-30 17:04:41 +0100 |
---|---|---|
committer | daniel <dkinzler@wikimedia.org> | 2024-05-08 16:12:30 +0200 |
commit | 91a1741787aed472abe9cb24eaacd40a76f9f894 (patch) | |
tree | ae8ed939c55fbb0f284e2eba1760fe8b3f72ad05 /tests/common | |
parent | 4d4d2a15a9d3901fcad7db840026feafedfd9ba9 (diff) | |
download | mediawikicore-91a1741787aed472abe9cb24eaacd40a76f9f894.tar.gz mediawikicore-91a1741787aed472abe9cb24eaacd40a76f9f894.zip |
Introduce Modules into the REST framework
Modules group together endpoints by a shared prefix. The idea is that each module has its own version and can generated self-contained self-documentation. This allows clients to have clear expectations about the endpoints of each module, no matter what wiki they are accessing. So far, each wiki may be exposing a different set of endpoints, with no way to provide a spec that describes that set of endpoints in a way that would be consistent across wikis and stable over time.
Bug: T362480
Change-Id: Iebcde4645d472d27eee5a30adb6eee12cc7d046b
Diffstat (limited to 'tests/common')
-rw-r--r-- | tests/common/TestsAutoLoader.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/common/TestsAutoLoader.php b/tests/common/TestsAutoLoader.php index ca9573078498..1a95a49c4da2 100644 --- a/tests/common/TestsAutoLoader.php +++ b/tests/common/TestsAutoLoader.php @@ -312,6 +312,7 @@ $wgAutoloadClasses += [ 'MediaWiki\\Tests\\Structure\\BundleSizeTestBase' => "$testDir/phpunit/structure/BundleSizeTestBase.php", # tests/phpunit/unit/includes/Rest + 'MediaWiki\Tests\Rest\MockHandlerFactory' => "$testDir/phpunit/unit/includes/Rest/MockHandlerFactory.php", 'MediaWiki\\Tests\\Rest\\RestTestTrait' => "$testDir/phpunit/unit/includes/Rest/RestTestTrait.php", 'MediaWiki\\Tests\\Rest\\Handler\\SessionHelperTestTrait' => "$testDir/phpunit/unit/includes/Rest/SessionHelperTestTrait.php", |