PostgREST Output in XML #3163
-
Hi This gives me output in the json format. How can i get the output in xml format? I tried using - curl http://localhost:/ -X GET -H "Content-Type: application/xml" but its still giving me json output. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey! |
Beta Was this translation helpful? Give feedback.
Hey!
application/xml
is not a builtin Media Type in PostgREST, so it won't return the data inxml
format by default. You'll need to define it yourself by using Media Type Handlers andGET
the data with theAccept: application/xml
header (there's an example in that page of the docs).