0 Replies Latest reply on Feb 6, 2016 4:22 PM by Dietmar Aust

    How to expose a resource using different data formats (a.k.a. content negotiation) ?

    Dietmar Aust

      Hi guys,


      in the REST community it seems the preferred way to expose the same resource (e.g. the rows of the EMP table in xml, json or csv format) using an agent driven negotiation using the Accept header.


      For example, when the same resource is requested using GET and a http header Accept: text/xml the server will respond with an xml representation. If the client sends Accept: application/json the server will respond in JSON format.


      Can that be implemented using ORDS? As far as I know we have to choose a specific return format (JSON or CSV) for a certain URI (or even resource handler).


      It seems like this cannot implemented using ORDS ... or what am I overlooking?