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
|
<p>Most of the GET queries return many fields per
|
||||||
object. See <a href="../doc/stats.html">the separate stats
|
object. See <a href="../doc/stats.html">the separate stats
|
||||||
documentation</a>.</p>
|
documentation</a>.</p>
|
||||||
|
|
||||||
<h2>Examples</h2>
|
<h2>Examples</h2>
|
||||||
|
|
||||||
<p>A few quick examples for Windows and Unix, using the command line
|
<p>A few quick examples for Windows and Unix, using the command line
|
||||||
|
|
@ -570,14 +570,21 @@ Content-Length: 0</pre>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td>X</td>
|
<td>X</td>
|
||||||
<td class="path">/api/bindings/<i>vhost</i>/e/<i>exchange</i>/q/<i>queue</i></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
|
<td>
|
||||||
queue. Remember, an exchange and a queue can be bound
|
<p>
|
||||||
together many times! To create a new binding, POST to this
|
A list of all bindings between an exchange and a
|
||||||
URI. You will need a body looking something like this:
|
queue. Remember, an exchange and a queue can be bound
|
||||||
<pre>{"routing_key":"my_routing_key","arguments":{}}</pre>
|
together many times!
|
||||||
All keys are optional.
|
</p>
|
||||||
The response will contain a <code>Location</code> header
|
<p>
|
||||||
telling you the URI of your new binding.
|
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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -599,9 +606,22 @@ Content-Length: 0</pre>
|
||||||
<td>X</td>
|
<td>X</td>
|
||||||
<td class="path">/api/bindings/<i>vhost</i>/e/<i>source</i>/e/<i>destination</i></td>
|
<td class="path">/api/bindings/<i>vhost</i>/e/<i>source</i>/e/<i>destination</i></td>
|
||||||
<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,
|
the list of all bindings between an exchange and a queue,
|
||||||
above.
|
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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue