Merge "Cleaned up request and response formats page"

This commit is contained in:
Jenkins 2016-07-26 13:20:10 +00:00 committed by Gerrit Code Review
commit 08c84ca7ab

View File

@ -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",