-
Hi,
When i test it in postgresql, it's ok -> Is there a way to have a xml stream returning by a postgresql function with postgrest without the quotes? Thank you Paul |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I've found a solution and change the return type of the function with "/" and voilà! |
Beta Was this translation helpful? Give feedback.
I've found a solution
just add a domain in postgresql
create domain "*/*" as bytea;
and change the return type of the function with "/"
don't forget to keep:
perform set_config('response.headers', json_build_array(json_build_object('content-Type', 'text/xml'))
and voilà!
-> browser get the good output in xml!
Paul