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
This commit is contained in:
@@ -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
|
one supported content type, all content is assumed to be
|
||||||
``application/json`` in both request and response formats.
|
``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**
|
**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
|
|
||||||
|
|
||||||
.. code::
|
.. code::
|
||||||
|
|
||||||
|
POST /v2/010101/servers HTTP/1.1
|
||||||
|
Host: servers.api.openstack.org
|
||||||
|
X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb
|
||||||
|
|
||||||
|
.. code:: JSON
|
||||||
|
|
||||||
{
|
{
|
||||||
"server": {
|
"server": {
|
||||||
"name": "server-test-1",
|
"name": "server-test-1",
|
||||||
|
Reference in New Issue
Block a user