Since we introduced support for the "body" PARAM_SOURCE in getParamSettings, fields in the request body can be defined in the same way that path and query parameters are defined. However, body fields are treated separately by the framework, and the value of body fields are available through getValidatedBody(), rather than getValidatedParams(). Because of that, it makes sense to have a method that returns the param settings just for the body fields. This also allows handler classes to override this method separately to specify body fields. That way, it also becomes possible to have body fields that have the same name as other parameters. Bug: T362850 Change-Id: Ia85bf7e46c949a999052d91f1b0d7d579a880108 |
||
|---|---|---|
| .. | ||
| AbstractSchemaValidationTest.php | ||
| ApiPrefixUniquenessTest.php | ||
| ApiStructureTest.php | ||
| AutoLoaderStructureTest.php | ||
| AvailableRightsTest.php | ||
| BundleSizeTestBase.php | ||
| CodexTokenDefaultsTest.php | ||
| ContentHandlerFunctionalTest.php | ||
| DatabaseIntegrationTest.php | ||
| DumpableObjectsTest.php | ||
| ExtensionJsonValidationTest.php | ||
| PasswordPolicyStructureTest.php | ||
| PHPUnitConfigTest.php | ||
| ResourcesTest.php | ||
| RestStructureTest.php | ||
| ScopeStructureTest.php | ||
| SettingsTest.php | ||
| SpecialPageFatalTest.php | ||
| StructureTest.php | ||