| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
| |
bug: T358557
Change-Id: I41e81f1166a09a4409319cced20a76dc08c6869e
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Ia57fb787b43c8e49da4f33a65c265cbc37ee1f77
|
|
|
|
| |
Change-Id: I1cd7297715bf0f9902949a5117ea7ab94b689a37
|
|
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
|