aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Rest/RequestData.php
Commit message (Collapse)AuthorAgeFilesLines
* Rest: Add missing documentation to class propertiesUmherirrender2024-09-071-0/+6
| | | | | | | | | | Add doc-typehints to class properties found by the PropertyDocumentation sniff to improve the documentation. Once the sniff is enabled it avoids that new code is missing type declarations. This is focused on documentation and does not change code. Change-Id: Idf17719c875466810313f0fbbf16bc67f3e40059
* REST: introduce getSupportedRequestTypes()daniel2024-05-151-0/+4
| | | | | | | | | | | REST handlers should explicitly list content types they support for request bodies. This is needed for generating OpenAPI specs. NOTE: this removes default support for form data requests, unless there are "post" parameters declared. "body" parameters require JSON. Bug: T362850 Change-Id: I1339b1a1770719bd4a5d4d414a8e55fcbb498ac1
* Rest router should provide parsed body data to handler.Wendy Quarshie2024-03-041-1/+1
| | | | | bug: T358557 Change-Id: I41e81f1166a09a4409319cced20a76dc08c6869e
* RequestInterface: add hasBody()daniel2024-02-281-0/+17
| | | | | | | | hasBody() provides an easy way to check whether the request contains payload data. This ensures this check is performed consistently and in accordance with RFC 9110. Change-Id: If15f2cb6239c4c8170e70a5bec8a5f0821361275
* RequestInterface: add getParsedBody and setParsedBody.Wendy Quarshie2024-02-271-0/+1
| | | | | | | Adding getParsedBody is intended to make it easier for us to implement proper request body validation. Also, it get us closer to PSR-7. Bug: T357025 Change-Id: Ib36d22f15f9226f1f088e55bb335d05dbb7a0e6a
* Fix typo: 'the the' -> 'the'Ed Sanders2020-05-031-1/+1
| | | | Change-Id: Ia57fb787b43c8e49da4f33a65c265cbc37ee1f77
* REST: Rename attributes to path paramsTim Starling2019-06-141-2/+2
| | | | Change-Id: I1cd7297715bf0f9902949a5117ea7ab94b689a37
* REST API initial commitTim Starling2019-06-121-0/+104
Add some of the basic REST API class hierarchies: * EntryPoint * Router * Request * Response * Handler The actual entry point file rest.php has been moved to a separate commit, so this is just an unused library and service. Bug: T221177 Change-Id: Ifca6bcb8a304e8e8b7f52b79c607bdcebf805cd1