summaryrefslogtreecommitdiff
path: root/api-guide
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-07-26 13:20:10 +0000
committerGerrit Code Review <review@openstack.org>2016-07-26 13:20:10 +0000
commit08c84ca7aba5e87a0f107659b7dbf35298133e1c (patch)
tree6474d511c0079960fe8cc2e1fff341f20d79c801 /api-guide
parentd0b64ed0d32345c83e1ffd6b11bef7cf0700fab8 (diff)
parent64cbefbe38a94bd419a1ce30453ceb31e666a764 (diff)
downloadnova-08c84ca7aba5e87a0f107659b7dbf35298133e1c.tar.gz
Merge "Cleaned up request and response formats page"
Diffstat (limited to 'api-guide')
-rw-r--r--api-guide/source/request_and_response_formats.rst18
1 files changed, 10 insertions, 8 deletions
diff --git a/api-guide/source/request_and_response_formats.rst b/api-guide/source/request_and_response_formats.rst
index 65377f53a8..0ca63b7372 100644
--- a/api-guide/source/request_and_response_formats.rst
+++ b/api-guide/source/request_and_response_formats.rst
@@ -7,19 +7,21 @@ formats, with a mime-type of ``application/json``. As there is only
one supported content type, all content is assumed to be
``application/json`` in both request and response formats.
-Request and response examples
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Request and response example
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-The examples below show a request body in JSON format.
+The example below shows a request body in JSON format:
-**Example: JSON request with headers**
-
-| POST /v2/010101/servers HTTP/1.1
-| Host: servers.api.openstack.org
-| X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb
+**Example: JSON request with headers**
.. code::
+ POST /v2/010101/servers HTTP/1.1
+ Host: servers.api.openstack.org
+ X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb
+
+.. code:: JSON
+
{
"server": {
"name": "server-test-1",