Return parsed objects returned from a PATCH request to ``path``. :param path: The path to fetch. :param data: Dictionary, bytes, or file-like object to send in the body of the request (default: ``None``). :param json: JSON-serializable object to send in the body
(
self,
path: str,
*,
data: dict[str, Any] | bytes | IO | str | None = None,
json: dict[Any, Any] | list[Any] | None = None,
params: dict[str, str | int] | None = None,
)
| 766 | return url_generator(url) |
| 767 | |
| 768 | def patch( |
| 769 | self, |
| 770 | path: str, |
| 771 | *, |
| 772 | data: dict[str, Any] | bytes | IO | str | None = None, |
| 773 | json: dict[Any, Any] | list[Any] | None = None, |
| 774 | params: dict[str, str | int] | None = None, |
| 775 | ) -> Any: |
| 776 | """Return parsed objects returned from a PATCH request to ``path``. |
| 777 | |
| 778 | :param path: The path to fetch. |
| 779 | :param data: Dictionary, bytes, or file-like object to send in the body of the |
| 780 | request (default: ``None``). |
| 781 | :param json: JSON-serializable object to send in the body of the request with a |
| 782 | Content-Type header of application/json (default: ``None``). If ``json`` is |
| 783 | provided, ``data`` should not be. |
| 784 | :param params: The query parameters to add to the request (default: ``None``). |
| 785 | |
| 786 | """ |
| 787 | return self._objectify_request(data=data, json=json, method="PATCH", params=params, path=path) |
| 788 | |
| 789 | def post( |
| 790 | self, |
no test coverage detected