diff --git a/install.rst b/install.rst index 0e288d3ee..0c71f25ed 100644 --- a/install.rst +++ b/install.rst @@ -88,6 +88,7 @@ max-rows Int ∞ pre-request String app.settings.* String role-claim-key String .role +raw-media-types String ==================== ====== ========= ======== .. _db-uri: @@ -254,6 +255,22 @@ role-claim-key # non-alphanumerical characters can go inside quotes(escaped in the config value) role-claim-key = ".\"https://www.example.com/role\".key" +.. _raw-media-types: + +raw-media-types +--------------- + + This serves to extend the media types 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`. + + As an example, the below config would allow you to request an **image** and an **xml** by doing a request with ``Accept: image/png`` + and a request with ``Accept: text/xml``, respectively. + + .. code:: bash + + raw-media-types="image/png, text/xml" + Running the Server ==================