Allow returning XML

This commit is contained in:
Franz-Josef Färber
2022-05-05 10:57:38 -05:00
committed by Steve Chavez
parent 9c23ac2f39
commit 6e24e23b4b
4 changed files with 46 additions and 51 deletions
+3 -3
View File
@@ -587,14 +587,14 @@ raw-media-types
This serves to extend the `Media Types <https://en.wikipedia.org/wiki/Media_type>`_ that PostgREST currently accepts through an ``Accept`` header.
These media types can be requested by following the same rules as the ones defined in :ref:`binary_output`.
These media types can be requested by following the same rules as the ones defined in :ref:`scalar_return_formats`.
As an example, the below config would allow you to request an **image** and a **XML** file by doing a request with ``Accept: image/png``
or ``Accept: text/xml``, respectively.
or ``Accept: font/woff2``, respectively.
.. code:: bash
raw-media-types="image/png, text/xml"
raw-media-types="image/png, font/woff2"
.. _server-host: