Skip to content

Commit

Permalink
fix code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Sep 23, 2017
1 parent f8a61ef commit 0fe277e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
html_theme = 'classic'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
14 changes: 7 additions & 7 deletions doc/get_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contains several keys:
is public or private, the available request/response schema and also the
action which should be executed:

.. code-block:: yaml
.. code-block:: yaml
routes:
"/todo": !include resources/routes/todo/collection.yaml
Expand All @@ -25,7 +25,7 @@ contains several keys:

Contains the available request and response schema in the JSON-Schema format:

.. code-block:: yaml
.. code-block:: yaml
schema:
Todo: !include resources/schema/todo/entity.json
Expand All @@ -37,7 +37,7 @@ contains several keys:
Provides connections to a remote service i.e. mysql or mongodb. This
connection can be used inside an action:

.. code-block:: yaml
.. code-block:: yaml
connection: !include resources/connections.yaml
Expand All @@ -46,7 +46,7 @@ contains several keys:
Through migrations it is possible to execute i.e. sql queries on a connection.
This allows you to change your database schema on deployment.

.. code-block:: yaml
.. code-block:: yaml
migration: !include resources/migrations.yaml
Expand All @@ -72,7 +72,7 @@ access token in order to send a POST request.
Now you can obtain a JWT through a simple HTTP request to the
``consumer/login`` endpoint.

.. code-block:: http
.. code-block:: http
POST /consumer/login HTTP/1.1
Host: 127.0.0.1
Expand All @@ -85,7 +85,7 @@ access token in order to send a POST request.
Which returns a token i.e.:
.. code-block:: json
.. code-block:: json
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5N2JkNDUzYjdlMDZlOWFlMDQxNi00YmY2MWFiYjg4MDJjZmRmOWZmN2UyNDg4OTNmNzYyYmU5Njc5MGUzYTk4NDQ3MDEtYjNkYTk1MDYyNCIsImlhdCI6MTQ5MTE2NzIzNiwiZXhwIjoxNDkxMTcwODM2LCJuYW1lIjoidGVzdCJ9.T49Af5wnPIFYbPer3rOn-KV5PcN0FLcBVykUMCIAuwI"
Expand All @@ -100,7 +100,7 @@ access token in order to send a POST request.
Now we can use the JWT as Bearer token in the ``Authorization`` header to
access the protected endpoint.

.. code-block:: http
.. code-block:: http
POST /todo HTTP/1.1
Host: 127.0.0.1
Expand Down
8 changes: 4 additions & 4 deletions doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,16 @@ most login errors in case you are not able to login at the backend:
backend with no credentials the app should make an request to the
``/backend/token`` endpoint which should return a JSON response i.e.:

.. code-block:: json
.. code-block:: json
{ "error": "invalid_request", "error_description": "Credentials not available" }
{ "error": "invalid_request", "error_description": "Credentials not available" }
If this is the case your app is correctly configured. If this is not the case
you need to adjust the endpoint url at ``/public/fusio/index.htm`` i.e.:
.. code-block:: javascript
.. code-block:: javascript
var fusioUrl = "http://localhost:8080/fusio/public/index.php/";
var fusioUrl = "http://localhost:8080/fusio/public/index.php/";
* **Apache module mod_rewrite is not activated**

Expand Down

0 comments on commit 0fe277e

Please sign in to comment.