aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Rest
Commit message (Collapse)AuthorAgeFilesLines
* Localisation updates from https://translatewiki.net.Translation updater bot2025-04-071-0/+8
| | | | Change-Id: I4b171bedf3a9ef1df7bd11f86c5d7404bd695929
* REST: Remove unused setUseParserCache() as potential footgunTimo Tijhof2025-04-051-12/+0
| | | | | | | | | | Added in 2022 with I7d97c9e2d4 (c6a0d433ec) for Ie430acd075 (e82f11c246) which was (after a revert and re-apply) eventually removed after the warmup completed (I852060c8a4, 3df4952385). Bug: T322672 Bug: T387478 Change-Id: I1921b4f985fb27b2227aef4a0eba6751c1c0b8d5
* Localisation updates from https://translatewiki.net.Translation updater bot2025-04-041-0/+1
| | | | Change-Id: I030398e0ef3a20be9a0d500b051e2a3d88ecc01f
* Merge "Rest: Use type declaration on undocumented private functions"jenkins-bot2025-04-048-9/+9
|\
| * Rest: Use type declaration on undocumented private functionsUmherirrender2025-03-308-9/+9
| | | | | | | | Change-Id: Ic9c1e2051775733672fe8a5378fd3b7ed0a3f652
* | Localisation updates from https://translatewiki.net.Translation updater bot2025-04-012-2/+6
| | | | | | | | Change-Id: I94adc67717ac66fc655866f4b8d93bcb758eaace
* | Localisation updates from https://translatewiki.net.Translation updater bot2025-03-313-2/+52
|/ | | | Change-Id: I2f499c75ce82bd4bb8697b6a950017f0309b2427
* Consistent spelling of "username"Huji2025-03-291-1/+1
| | | | | | | | | | Almost everywhere else in MediaWiki core and extensions (at least those used by Wikimedia), it's written without a space. Follow up from I4c40a9566642fb2fbcf2006e4b7e33501b7b2575 Change-Id: I952f9552a5300eb883df1b2fc8d9276c42a2c3a6
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-281-1/+8
| | | | Change-Id: I617c9421a2991a74f1d7aa3cbe05962e36c99de2
* Merge "REST: fix extra routes module localization strings"jenkins-bot2025-03-271-2/+2
|\
| * REST: fix extra routes module localization stringsbpirkle2025-03-261-2/+2
| | | | | | | | | | | | | | | | | | | | A previous change to add localization strings for the REST extra routes module was inconsistent between the en/qqq json files and the message name in php, causing the strings to display incorrectly in the REST Sandbox. Fix so the messages display correctly. Bug: T385855 Change-Id: I6c8d825a98ee36218cd23e3945c42010c9bd5ef3
* | Localisation updates from https://translatewiki.net.Translation updater bot2025-03-271-0/+8
|/ | | | Change-Id: Icbb7ac5c4484bb26e7b69f4118b39d40bef0eb68
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-266-7/+11
| | | | Change-Id: Ie5ca65e941487bdd0b16a0e1f840a1b642a0d942
* Namespace all remaining files in includes/changetagsJames D. Forrester2025-03-252-2/+2
| | | | | Bug: T353458 Change-Id: I3cf44dfe5425f2efb8409c83571c427447b053af
* Namespace all remaining files in includes/exceptionJames D. Forrester2025-03-255-6/+6
| | | | | | | | | In MediaWiki/Exception, to follow PSR-4 per plural vs. singular (this can be changed later if people really care). Also, move the couple of exceptions in here that were already namespaced in the MW-top-level into the new space. Bug: T353458 Change-Id: I12ed850ae99effb699a6d7ada173f54e72f0570e
* Merge "REST: Fix rest-property-desc-search-matched-title message"jenkins-bot2025-03-251-1/+1
|\
| * REST: Fix rest-property-desc-search-matched-title messagebpirkle2025-03-241-1/+1
| | | | | | | | | | | | | | In bringing over documentation strings from the API Portal, this one was garbled. Fix to be sensible. Change-Id: I74ebd499e91b10487e0ba3e17b8df6efe2116858
* | Localisation updates from https://translatewiki.net.Translation updater bot2025-03-255-4/+33
|/ | | | Change-Id: I30b0563c4188b53929e6a4109031a827916370f1
* Merge "REST: Make OpenAPI spec info strings translatable"jenkins-bot2025-03-2410-78/+181
|\
| * REST: Make OpenAPI spec info strings translatablebpirkle2025-03-2110-78/+181
| | | | | | | | | | | | | | | | | | OpenAPI specs include an "info" section that includes strings such as "title" and "description" that are intended to be human-readable. Make all such strings translatable. Bug: T385855 Change-Id: I15285be6d196c0e7fd7e922f23058d7c09b6b31a
* | Localisation updates from https://translatewiki.net.Translation updater bot2025-03-2412-51/+303
| | | | | | | | Change-Id: I2fc3a798062df604a9cd283fe2e36921bf03d809
* | Merge "mocha: Test Page media links endpoint"jenkins-bot2025-03-221-0/+6
|\ \
| * | mocha: Test Page media links endpointAtieno2025-03-201-0/+6
| |/ | | | | | | | | Bug: T384942 Change-Id: I12c564245113226403298c472f93404dc6b28c2c
* | Merge "mocha: Test Page language links endpoint"jenkins-bot2025-03-221-0/+7
|\ \
| * | mocha: Test Page language links endpointAtieno2025-03-201-0/+7
| |/ | | | | | | | | Bug: T382458 Change-Id: Iedd4526a516e8c8e45576a15f3a747a429a2f317
* / Translate response body property descriptions for remaining endpointsfrankie2025-03-2012-116/+210
|/ | | | | | | Extending the work began in T3847447, in a continued effort to auto-generate translatable messages in OpenAPI specs, refactor schemas for content.v1 endpoints to accept translatable strings. Bug: T384750 Change-Id: I95b51021babbed1800ed53ee0066cbe83b3b7535
* Namespace all remaining files in includes/filerepoJames D. Forrester2025-03-192-7/+5
| | | | | Bug: T353458 Change-Id: I35864ad9bd48701703c51367d62f8ebde963c52d
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-181-1/+2
| | | | Change-Id: Ie7ded5433546e7076e63883b52ea3d405801c510
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-121-1/+36
| | | | Change-Id: Id4dce6a1b6c111698a71e5531db33d1f47568e0c
* REST page metadata endpoints: handle supressed data gracefullydaniel2025-03-101-2/+5
| | | | | | | | | | | | | | Why: - Revision meta-data output was failingfor revisions with suppressed user or comment What: - Handle suppressed user and comment gracefully - add regression test Bug: T386368 Bug: T387397 Change-Id: Ic6d3fc89d24030f5c3fd422637816de9976fc709
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-103-1/+8
| | | | Change-Id: Ib9eb4ac69ff3c7361d7873873b02595521a4ddd6
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-072-1/+4
| | | | Change-Id: Id5b0ff9140433136acad22cf4def5740b583088b
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-052-0/+7
| | | | Change-Id: I28abfab76b1c7dfa268e7ea2a8c0c50672e87bda
* Localisation updates from https://translatewiki.net.Translation updater bot2025-03-037-7/+152
| | | | Change-Id: Ice1b0bef4d9a0162fcd513410aa31d73deb1ec63
* Merge "Translate response body property descriptions for 'content.v1' endpoints"jenkins-bot2025-02-289-126/+196
|\
| * Translate response body property descriptions for 'content.v1' endpointsfrankie2025-02-259-126/+196
| | | | | | | | | | | | | | As part of the effort to auto generate translatable messages in OpenAPI specs, refactor schemas for content.v1 endpoints to accept translatable strings. Bug: T384747 Change-Id: I728f0932a770eba56c2ad8e26c74f88fa266a1f9
* | Localisation updates from https://translatewiki.net.Translation updater bot2025-02-263-1/+13
|/ | | | Change-Id: I357515aef92ea5e98a578a1610113e61785e583a
* Localisation updates from https://translatewiki.net.Translation updater bot2025-02-241-2/+9
| | | | Change-Id: Id3e5ba20513bcad9b6325503116e35381c3cc6f6
* REST: Transform: Validate responses against response schemas in testsAtieno2025-02-181-0/+2
| | | | | Bug: T376607 Change-Id: I44bbba284e34e8ff53914d9a881598ccb5cb8aa8
* Replace a few misplaces is_object checksthiemowmde2025-02-121-1/+1
| | | | | | | | | | | | is_object is very rarely what we actually need. In many cases we know exactly what the object can be, and should check for that specific class or for null. A database row is an instance of stdClass. Checking that with is_object also works but is less correct and would allow stuff we cannot accept in these places. Change-Id: I1dc663d7325cabc059ef11c4845b0189208e907f
* Localisation updates from https://translatewiki.net.Translation updater bot2025-02-112-1/+10
| | | | Change-Id: Ieda8d483df6c85d6c766414f2e9602f94b9dc85e
* Localisation updates from https://translatewiki.net.Translation updater bot2025-02-102-0/+9
| | | | Change-Id: I5c69db1774f3659b213467e3a238c02a8286f9a8
* Localisation updates from https://translatewiki.net.Translation updater bot2025-02-079-9/+11
| | | | Change-Id: Ie305a422133d22a277a432462aa566dd3a876c9b
* Merge "REST: include ETag in 304 responses"jenkins-bot2025-02-071-0/+1
|\
| * REST: include ETag in 304 responsesdaniel2025-02-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Why: RFC9110 requires 304 "not modified" responses to contain the "date" and "etag" headers. Failing to include them caused etags to be missing from responses that were returned from cache after checking the backend using if-modified-since. What: - Make Handler::checkPreconditions() call applyConditionalResponseHeaders() to add the conditional headers if the precondition check fails. Bug: T357603 Change-Id: Ic2e288c971774a561395b3df04bab7256ca62014
* | Merge "Translate request body parameters for 'page' endpoints"jenkins-bot2025-02-064-7/+19
|\ \
| * | Translate request body parameters for 'page' endpointsfrankie2025-02-054-7/+19
| | | | | | | | | | | | | | | | | | | | | As part of an effort to increase translation coverage over automated OpenAPI spec generation, use established translation strings for all request body parameters. Bug: T378375 Change-Id: If678d7177bd09e3bdc5bc0cd1605a43dc825eb5c
* | | Localisation updates from https://translatewiki.net.Translation updater bot2025-02-062-1/+13
| | | | | | | | | | | | Change-Id: I5495becb444413be27e0f2831adddaf5696834a3
* | | Merge "Use $string === '' instead of strlen( $string ) === 0"jenkins-bot2025-02-052-2/+2
|\ \ \ | |/ / |/| |
| * | Use $string === '' instead of strlen( $string ) === 0Fomafix2025-01-302-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add $string === false or $string === null where $string can have other types than a string. Also document null as possible return value in FileRepo. Change-Id: Iaa29ba01c3fd6bea506debdc6f929edfe881c808