Skip to content

Commit bec4e59

Browse files
committed
IS-17798: Added support for the parse_response_as operations property
1 parent 2d44c80 commit bec4e59

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

hub/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
.. _changelog_2024_09_17:
5+
6+
2024-09-17
7+
----------
8+
* Added support for the ``parse_response_as`` property to the :ref:`operation properties <rest_operations>`. It can be specified in the ``operations`` property of both the :ref:`REST systems <rest_system>` and the :ref:`REST transform <rest_transform>`. It is not supported by the :ref:`REST source <rest_source>` or :ref:`REST sink <rest_sink>`.
9+
410
.. _changelog_2024_05_21:
511

612
2024-05-21

hub/documentation/service-configuration/systems/configuration-systems-rest.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,18 @@ A operation configuration looks like:
259259
-
260260
-
261261

262+
* - ``parse_response_as``
263+
- Enum<String>
264+
- This property controls how the response body is parsed on the client-side. Allowed values are ``entities``, ``json``, ``text`` and ``bytes``.
265+
266+
- ``entities`` is the default and parses the response body as a stream of entities, i.e. JSON objects and arrays of JSON objects.
267+
- ``json`` parses the response body as any JSON object including primitive types like numbers and strings.
268+
- ``text`` parses the response body as a UTF-8 encoded string.
269+
- ``bytes`` parses the response body as bytes.
270+
271+
- ``entities``
272+
-
273+
262274
* - ``response_property``
263275
- String
264276
- The name of the property to put the response in when emitting entities. Note that this property can be defined

0 commit comments

Comments
 (0)