Clarify what request body is expected for binding creating POSTs
This commit is contained in:
parent
39d16f754f
commit
ddac49268e
|
|
@ -56,7 +56,7 @@
|
|||
<p>Most of the GET queries return many fields per
|
||||
object. See <a href="../doc/stats.html">the separate stats
|
||||
documentation</a>.</p>
|
||||
|
||||
|
||||
<h2>Examples</h2>
|
||||
|
||||
<p>A few quick examples for Windows and Unix, using the command line
|
||||
|
|
@ -570,14 +570,21 @@ Content-Length: 0</pre>
|
|||
<td></td>
|
||||
<td>X</td>
|
||||
<td class="path">/api/bindings/<i>vhost</i>/e/<i>exchange</i>/q/<i>queue</i></td>
|
||||
<td>A list of all bindings between an exchange and a
|
||||
queue. Remember, an exchange and a queue can be bound
|
||||
together many times! To create a new binding, POST to this
|
||||
URI. You will need a body looking something like this:
|
||||
<pre>{"routing_key":"my_routing_key","arguments":{}}</pre>
|
||||
All keys are optional.
|
||||
The response will contain a <code>Location</code> header
|
||||
telling you the URI of your new binding.
|
||||
<td>
|
||||
<p>
|
||||
A list of all bindings between an exchange and a
|
||||
queue. Remember, an exchange and a queue can be bound
|
||||
together many times!
|
||||
</p>
|
||||
<p>
|
||||
To create a new binding, POST to this
|
||||
URI. Request body should be a JSON object optionally containing
|
||||
two fields, <code>routing_key</code> (a string) and <code>arguments</code> (a map of optional arguments):
|
||||
<pre>{"routing_key":"my_routing_key", "arguments":{"x-arg": "value"}}</pre>
|
||||
All keys are optional.
|
||||
The response will contain a <code>Location</code> header
|
||||
telling you the URI of your new binding.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -599,9 +606,22 @@ Content-Length: 0</pre>
|
|||
<td>X</td>
|
||||
<td class="path">/api/bindings/<i>vhost</i>/e/<i>source</i>/e/<i>destination</i></td>
|
||||
<td>
|
||||
A list of all bindings between two exchanges. Similar to
|
||||
<p>
|
||||
A list of all bindings between two exchanges, similar to
|
||||
the list of all bindings between an exchange and a queue,
|
||||
above.
|
||||
</p>
|
||||
<p>
|
||||
<p>
|
||||
To create a new binding, POST to this
|
||||
URI. Request body should be a JSON object optionally containing
|
||||
two fields, <code>routing_key</code> (a string) and <code>arguments</code> (a map of optional arguments):
|
||||
<pre>{"routing_key":"my_routing_key", "arguments":{"x-arg": "value"}}</pre>
|
||||
All keys are optional.
|
||||
The response will contain a <code>Location</code> header
|
||||
telling you the URI of your new binding.
|
||||
</p>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Reference in New Issue