[placement]Enhance doc for placement allocation list

add a note about when the non-existing consumer id input result

Change-Id: I2a19d8fe8dda5754112361be5ceac8a0dc747ae9
This commit is contained in:
jichenjc 2017-10-18 22:34:19 +08:00 committed by Matt Riedemann
parent 7e2d8cb89b
commit 1753195c75
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ List allocations
List all allocation records for the consumer identified by
`{consumer_uuid}` on all the resource providers it is consuming.
.. note:: When listing allocations for a consumer uuid that has no
allocations a dict with an empty value is returned
``{"allocations": {}}``.
.. rest_method:: GET /allocations/{consumer_uuid}
Normal Response Codes: 200