doc: style fixes

This commit is contained in:
pancho horrillo
2019-12-13 15:14:35 +01:00
parent 2847073519
commit 3bb0205ad1
+12 -8
View File
@@ -255,7 +255,8 @@ Modify JSON by Using Shell Commands
`jq <https://stedolan.github.io/jq/>`_. `jq <https://stedolan.github.io/jq/>`_.
**Example #1** Example #1
----------
In this example our *Kapow!* service will receive a `JSON` value with an incorrect In this example our *Kapow!* service will receive a `JSON` value with an incorrect
date, then our ``pow`` file will fix it and return the correct value to the user. date, then our ``pow`` file will fix it and return the correct value to the user.
@@ -280,7 +281,8 @@ Call the service with :program:`curl`:
} }
**Example #2** Example #2
----------
In this example we extract the ``name`` field from the incoming `JSON` document in In this example we extract the ``name`` field from the incoming `JSON` document in
order to generate a two-attribute `JSON` response. order to generate a two-attribute `JSON` response.
@@ -313,7 +315,8 @@ Call the service with :program:`curl`:
Upload Files Upload Files
++++++++++++ ++++++++++++
**Example #1** Example #1
----------
Uploading a file using *Kapow!* is very simple: Uploading a file using *Kapow!* is very simple:
@@ -334,7 +337,8 @@ Uploading a file using *Kapow!* is very simple:
{"hello": "world"} {"hello": "world"}
**Example #2** Example #2
----------
In this example we reply the line count of the file received in the request: In this example we reply the line count of the file received in the request:
@@ -416,7 +420,7 @@ request:
Sending HTTP error codes Sending HTTP error codes
++++++++++++++++++++++++ ++++++++++++++++++++++++
You can specify custom status code for HTTP response: You can specify custom status code for `HTTP` response:
.. code-block:: console .. code-block:: console
:linenos: :linenos:
@@ -453,7 +457,7 @@ Testing with :program:`curl`:
How to redirect using HTTP How to redirect using HTTP
++++++++++++++++++++++++++ ++++++++++++++++++++++++++
In this example we'll redirect our users to Google: In this example we'll redirect our users to `Google`:
.. code-block:: console .. code-block:: console
:linenos: :linenos:
@@ -488,8 +492,8 @@ In this example we'll redirect our users to Google:
How to Execute Two Processes in Parallel How to Execute Two Processes in Parallel
++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++
We want to :command:`ping` two machines parallel. *Kapow!* can get IPs from query We want to :command:`ping` two machines parallel. *Kapow!* can get IP addresses
params: from query params:
.. code-block:: console .. code-block:: console
:linenos: :linenos: