TrivialFix: Add code block and format JSON data

Add json code block and pretty format the JSON data
in file v2/share_snapshots.py.

Change-Id: I316663ff78195fbee88c2a72795762750edc233e
This commit is contained in:
junboli 2017-08-13 06:52:21 +08:00 committed by junbo.li
parent 80fe5f1fe4
commit cf3e58656a

View File

@ -84,14 +84,17 @@ class ShareSnapshotsController(share_snapshots.ShareSnapshotMixin,
"""Instruct Manila to manage an existing snapshot.
Required HTTP Body:
{
"snapshot":
{
"share_id": <Manila share id>,
"provider_location": <A string parameter that identifies the
snapshot on the backend>
}
}
.. code-block:: json
{
"snapshot":
{
"share_id": <Manila share id>,
"provider_location": <A string parameter that identifies
the snapshot on the backend>
}
}
Optional elements in 'snapshot' are:
name A name for the new snapshot.