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.
Answered by
laurenceisla
Jan 17, 2024
Replies: 1 comment
-
Hey! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wolfgangwalther
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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).