From 64cbefbe38a94bd419a1ce30453ceb31e666a764 Mon Sep 17 00:00:00 2001 From: Gage Hugo Date: Fri, 6 May 2016 11:23:14 -0500 Subject: [PATCH] Cleaned up request and response formats page Cleaned up the request_and_response_formats.rst page by putting the POST, host, and auth token values into their own block. Fixed examples to example since there is currently only one. Change-Id: I5d5e84c9e92e6770e6d413e90c66e0f4bfec20bf --- .../source/request_and_response_formats.rst | 18 ++++++++++-------- 1 file 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",