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

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,10 +64,9 @@ 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,7 +101,7 @@ 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.