Fixed nested list style in backend.http documentation

This commit is contained in:
Fabio Manganiello 2021-02-22 01:35:42 +01:00
parent ffb7a3e5a3
commit 6df336465f
1 changed files with 8 additions and 9 deletions

View File

@ -33,9 +33,9 @@ class HttpBackend(Backend):
* To execute Platypush commands via HTTP calls. In order to do so: * To execute Platypush commands via HTTP calls. In order to do so:
** Register a user to Platypush through the web panel (usually served on ``http://host:8008/``). * Register a user to Platypush through the web panel (usually served on ``http://host:8008/``).
** Generate a token for your user, either through the web panel (Settings -> Generate Token) or via API: * Generate a token for your user, either through the web panel (Settings -> Generate Token) or via API:
.. code-block:: shell .. code-block:: shell
@ -45,7 +45,7 @@ class HttpBackend(Backend):
"password": "$YOUR_PASSWORD" "password": "$YOUR_PASSWORD"
}' http://host:8008/auth }' http://host:8008/auth
** Execute actions through the ``/execute`` endpoint: * Execute actions through the ``/execute`` endpoint:
.. code-block:: shell .. code-block:: shell
@ -64,11 +64,10 @@ class HttpBackend(Backend):
* To display a fullscreen dashboard with custom widgets. * To display a fullscreen dashboard with custom widgets.
** Widgets are available as Vue.js components under * Widgets are available as Vue.js components under ``platypush/backend/http/webapp/src/components/widgets``.
``platypush/backend/http/webapp/src/components/widgets``.
** Explore their options (some may require some plugins or backends to be configured in order to work) and * Explore their options (some may require some plugins or backends to be configured in order to work) and
create a new dashboard template under ``~/.config/platypush/dashboards``- e.g. ``main.xml``: create a new dashboard template under ``~/.config/platypush/dashboards``- e.g. ``main.xml``:
.. code-block:: xml .. code-block:: xml
@ -102,8 +101,8 @@ class HttpBackend(Backend):
</Row> </Row>
</Dashboard> </Dashboard>
** The dashboard will be accessible under ``http://host:8008/dashboard/<name>``, where ``name=main`` if for * The dashboard will be accessible under ``http://host:8008/dashboard/<name>``, where ``name=main`` if for
example you stored your template under ``~/.config/platypush/dashboards/main.xml``. example you stored your template under ``~/.config/platypush/dashboards/main.xml``.
* To expose custom endpoints that can be called as web hooks by other applications and run some custom logic. * To expose custom endpoints that can be called as web hooks by other applications and run some custom logic.
All you have to do in this case is to create a hook on a All you have to do in this case is to create a hook on a