<div>On Thursday, December 22, 2011 10:48:19 AM UTC-6, Tom Hughes wrote:<br></div><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On 22/12/11 16:14, Michal Migurski wrote:<p>> +1 on Frederick's suggestion, with the caveat that it should be possible to override the Accept request header with a "?type=pbf" argument or similar.</p><p>Why on earth are we still bikeshedding this?</p><p>It's not rocket science to add extra response formats and we know <br>exactly how we will do it. Hell there's even code kicking around to do <br>it, we just need to get around to finishing it off.</p></blockquote>Newish jxapi installs (the .war on the jxapi github page) will support PBF output last I checked. Unfortunately, I don't think any currently-running public jxapi instances have the latest code. I will ask MQ to update what they have.<div style="border-style: initial; border-color: initial; "><br></div><div style="border-style: initial; border-color: initial; ">The jxapi currently uses path suffixes to determine response format, but the HTTP Accepts header is probably the best way to do it.</div><div style="border-style: initial; border-color: initial; "><br></div><div style="border-style: initial; border-color: initial; ">Here's an example of a query that works on my local dev instance:</div><div style="border-style: initial; border-color: initial; ">http://localhost:8080/xapi/api/0.6/node/123456.pbf<br></div><div style="border-style: initial; border-color: initial; "><br></div><div style="border-style: initial; border-color: initial; ">it also supports JSON:</div><div>http://localhost:8080/xapi/api/0.6/node/123456.json <br></div>