<div dir="ltr"><div><div><div><div><div>> How would you like to see that information presented?<br><br></div>The page is fine for understanding what requests I can make but it doesn't at all cover what responses are expected.<br>
<br></div>Thus, in order to see if a particular request is going to provide what I need, I have to construct a call and examine the output fields. It would be nice if there was a schema definition for what the response look like. JSON is fine for my needs - I don't know about others.<br>
<br></div>An interesting twist on the above is also that in some circumstances, not all data is returned for a given request. I'm specifically thinking about the case where the 'stats' database isn't available, so only a subset of the fields were returned when querying queue stats (I think I'm recalling the exact scenario correctly.)<br>
<br></div>A tiny bit more background - I'm starting to write tooling that will work against both 2.8 and 3.0 versions, so I need to query which version of the server I'm talking to. I initially queried a 3.0.1 instance for /api/overview and found the "rabbitmq_version" element. Great! So I coded that up in my tooling, and was then surprised when I didn't find that element when querying a 2.8.7 instance.<br>
<br>Is this normal? Correct? Who knows? I have no schema reference to consult. :-)<br><br></div>Matt<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 27, 2012 at 5:31 PM, Tim Watson <span dir="ltr"><<a href="mailto:tim@rabbitmq.com" target="_blank">tim@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 28/12/2012 00:55, Matt Pietrek wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've just noticed that when comparing the results of calling the HTTP<br>
API with /api/overview, there are at least a couple of fields that look<br>
new in 3.0X, relative to 2.8.7. In particular:<br>
<br>
rabbitmq_version<br>
erlang_version<br>
object_totals<br>
<br>
</blockquote>
<br></div>
Yes, those look familiar.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is this expected? And if so, is there some sort of comprehensive list of<br>
changes to the HTTP provided data in 3.0.x, relative to 2.8.X?<br>
<br>
</blockquote>
<br></div>
Does <a href="http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_0_1/priv/www/api/index.html" target="_blank">http://hg.rabbitmq.com/<u></u>rabbitmq-management/raw-file/<u></u>rabbitmq_v3_0_1/priv/www/api/<u></u>index.html</a> not meet your needs Matt? How would you like to see that information presented? Is it just that you'd like example json documents for all the API calls listed in that help page, or are you after some kind of schema - and if so, in what format?<br>
<br>
Cheers,<br>
Tim<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks,<br>
<br>
Matt<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>