[placement] Move body examples to an isolated directory
JSON body examples of Placement API reference are in the same directroy where *.inc files exist. This patch moves JSON body examples to an isolated directory in order to make it easier to maintain the API reference. Change-Id: I8fd587100d22bd10dd4b2b2f1b25c5ecc7fc8537
This commit is contained in:
parent
b71e9f3700
commit
ccc6a3c009
@ -66,7 +66,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-aggregates.json
|
||||
.. literalinclude:: ./samples/aggregates/get-aggregates.json
|
||||
:language: javascript
|
||||
|
||||
Update resource provider aggregates
|
||||
@ -91,7 +91,7 @@ Request
|
||||
Request example
|
||||
---------------
|
||||
|
||||
.. literalinclude:: update-aggregates-request.json
|
||||
.. literalinclude:: ./samples/aggregates/update-aggregates-request.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
@ -104,5 +104,5 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: update-aggregates.json
|
||||
.. literalinclude:: ./samples/aggregates/update-aggregates.json
|
||||
:language: javascript
|
||||
|
@ -48,7 +48,7 @@ Response (microversions 1.12 - )
|
||||
Response Example (microversions 1.12 - )
|
||||
----------------------------------------
|
||||
|
||||
.. literalinclude:: get-allocation_candidates-1.12.json
|
||||
.. literalinclude:: ./samples/allocation_candidates/get-allocation_candidates-1.12.json
|
||||
:language: javascript
|
||||
|
||||
Response (microversions 1.10 - 1.11)
|
||||
@ -68,5 +68,5 @@ Response (microversions 1.10 - 1.11)
|
||||
Response Example (microversions 1.10 - 1.11)
|
||||
--------------------------------------------
|
||||
|
||||
.. literalinclude:: get-allocation_candidates.json
|
||||
.. literalinclude:: ./samples/allocation_candidates/get-allocation_candidates.json
|
||||
:language: javascript
|
||||
|
@ -44,7 +44,7 @@ Request
|
||||
|
||||
Request Example
|
||||
|
||||
.. literalinclude:: manage-allocations-request.json
|
||||
.. literalinclude:: ./samples/allocations/manage-allocations-request.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
@ -87,7 +87,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-allocations.json
|
||||
.. literalinclude:: ./samples/allocations/get-allocations.json
|
||||
:language: javascript
|
||||
|
||||
Update allocations
|
||||
@ -123,7 +123,7 @@ Request (microversions 1.12 - )
|
||||
Request example (microversions 1.12 - )
|
||||
---------------------------------------
|
||||
|
||||
.. literalinclude:: update-allocations-request-1.12.json
|
||||
.. literalinclude:: ./samples/allocations/update-allocations-request-1.12.json
|
||||
:language: javascript
|
||||
|
||||
Request (microversions 1.0 - 1.11)
|
||||
@ -142,7 +142,7 @@ Request (microversions 1.0 - 1.11)
|
||||
Request example (microversions 1.0 - 1.11)
|
||||
------------------------------------------
|
||||
|
||||
.. literalinclude:: update-allocations-request.json
|
||||
.. literalinclude:: ./samples/allocations/update-allocations-request.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
|
@ -40,7 +40,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-inventories.json
|
||||
.. literalinclude:: ./samples/inventories/get-inventories.json
|
||||
:language: javascript
|
||||
|
||||
Update resource provider inventories
|
||||
@ -72,7 +72,7 @@ Request
|
||||
Request example
|
||||
---------------
|
||||
|
||||
.. literalinclude:: update-inventories-request.json
|
||||
.. literalinclude:: ./samples/inventories/update-inventories-request.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
@ -92,7 +92,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: update-inventories.json
|
||||
.. literalinclude:: ./samples/inventories/update-inventories.json
|
||||
:language: javascript
|
||||
|
||||
|
||||
|
@ -40,7 +40,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-inventory.json
|
||||
.. literalinclude:: ./samples/inventories/get-inventory.json
|
||||
:language: javascript
|
||||
|
||||
Update resource provider inventory
|
||||
@ -73,7 +73,7 @@ Request
|
||||
Request example
|
||||
---------------
|
||||
|
||||
.. literalinclude:: update-inventory-request.json
|
||||
.. literalinclude:: ./samples/inventories/update-inventory-request.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
@ -92,7 +92,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: update-inventory.json
|
||||
.. literalinclude:: ./samples/inventories/update-inventory.json
|
||||
:language: javascript
|
||||
|
||||
Delete resource provider inventory
|
||||
|
@ -38,7 +38,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-resource_class.json
|
||||
.. literalinclude:: ./samples/resource_classes/get-resource_class.json
|
||||
:language: javascript
|
||||
|
||||
Update resource class
|
||||
@ -102,7 +102,7 @@ Request
|
||||
Request example
|
||||
---------------
|
||||
|
||||
.. literalinclude:: update-resource_class-request.json
|
||||
.. literalinclude:: ./samples/resource_classes/update-resource_class-request.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
@ -116,7 +116,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: update-resource_class.json
|
||||
.. literalinclude:: ./samples/resource_classes/update-resource_class.json
|
||||
:language: javascript
|
||||
|
||||
Delete resource class
|
||||
|
@ -29,7 +29,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-resource_classes.json
|
||||
.. literalinclude:: ./samples/resource_classes/get-resource_classes.json
|
||||
:language: javascript
|
||||
|
||||
Create resource class
|
||||
@ -60,7 +60,7 @@ Request
|
||||
Request example
|
||||
---------------
|
||||
|
||||
.. literalinclude:: create-resource_classes-request.json
|
||||
.. literalinclude:: ./samples/resource_classes/create-resource_classes-request.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
|
@ -40,7 +40,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-resource_provider.json
|
||||
.. literalinclude:: ./samples/resource_providers/get-resource_provider.json
|
||||
:language: javascript
|
||||
|
||||
Update resource provider
|
||||
@ -69,7 +69,7 @@ Request
|
||||
Request example
|
||||
---------------
|
||||
|
||||
.. literalinclude:: update-resource_provider-request.json
|
||||
.. literalinclude:: ./samples/resource_providers/update-resource_provider-request.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
@ -87,7 +87,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: update-resource_provider.json
|
||||
.. literalinclude:: ./samples/resource_providers/update-resource_provider.json
|
||||
:language: javascript
|
||||
|
||||
Delete resource provider
|
||||
|
@ -36,5 +36,5 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-resource_provider_allocations.json
|
||||
.. literalinclude:: ./samples/resource_provider_allocations/get-resource_provider_allocations.json
|
||||
:language: javascript
|
||||
|
@ -37,7 +37,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-resource_provider-traits.json
|
||||
.. literalinclude:: ./samples/resource_provider_traits/get-resource_provider-traits.json
|
||||
:language: javascript
|
||||
|
||||
Update resource provider traits
|
||||
@ -70,7 +70,7 @@ Request
|
||||
Request example
|
||||
---------------
|
||||
|
||||
.. literalinclude:: update-resource_provider-traits-request.json
|
||||
.. literalinclude:: ./samples/resource_provider_traits/update-resource_provider-traits-request.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
@ -84,7 +84,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: update-resource_provider-traits.json
|
||||
.. literalinclude:: ./samples/resource_provider_traits/update-resource_provider-traits.json
|
||||
:language: javascript
|
||||
|
||||
|
||||
|
@ -38,5 +38,5 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-resource_provider_usages.json
|
||||
.. literalinclude:: ./samples/resource_provider_usages/get-resource_provider_usages.json
|
||||
:language: javascript
|
||||
|
@ -46,7 +46,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-resource_providers.json
|
||||
.. literalinclude:: ./samples/resource_providers/get-resource_providers.json
|
||||
:language: javascript
|
||||
|
||||
Create resource provider
|
||||
@ -76,7 +76,7 @@ Request
|
||||
Request example
|
||||
---------------
|
||||
|
||||
.. literalinclude:: create-resource_providers-request.json
|
||||
.. literalinclude:: ./samples/resource_providers/create-resource_providers-request.json
|
||||
:language: javascript
|
||||
|
||||
Response
|
||||
|
@ -45,5 +45,5 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-root.json
|
||||
.. literalinclude:: ./samples/root/get-root.json
|
||||
:language: javascript
|
||||
|
@ -42,7 +42,7 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-traits.json
|
||||
.. literalinclude:: ./samples/traits/get-traits.json
|
||||
:language: javascript
|
||||
|
||||
Show traits
|
||||
|
@ -39,5 +39,5 @@ Response
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: get-usages.json
|
||||
.. literalinclude:: ./samples/usages/get-usages.json
|
||||
:language: javascript
|
||||
|
Loading…
x
Reference in New Issue
Block a user