Responses in XML, uisng REST

Friday, 17 December 2010 · 2 messages
MD
Mahender Didwania17 Dec 2010 21:56 #

Hi,

BaseX returns XML for URLs like http://localhost:8984/basex/jax-rx/; however, database creation commands or collection creation commands result in text/plain content-type and plain-text being returned in response.

Perhaps it will be useful, in pure XML processing apps, for these responses to also be in XML.

Something like,
<jax-rx:results xmlns:jax-rx="http://jax-rx.sourceforge.net">
  <jax-rx:response status="201">Database 'Test' created in 38.22 ms.</jax-rx:response>
</jax-rx:results>

Regards, Mahender.

CG
Christian Grün17 Dec 2010 22:00 #
Quoted text · Mahender Didwania · 3 lines
> BaseX returns XML for URLs like http://localhost:8984/basex/jax-rx/; however, database creation commands or collection creation commands result in text/plain content-type and plain-text being returned in response. > > Perhaps it will be useful, in pure XML processing apps, for these responses to also be in XML.

Good hint; I've added this one to our JAX-RX todo list as well (and we might also have a second thought on how collection paths are to be treated within JAX-RX.. after the next release, of course).

Christian


⚡Generated with XQuery