Skip to content

Commit

Permalink
[docs] Minor improvements to REST API and settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Jun 4, 2024
1 parent 8415832 commit ca60194
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/user/rest-api.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
REST API
========

To enable the API the setting `OPENWISP_USERS_AUTH_API <#openwisp-users-auth-api>`_ must
be set to ``True``.
.. note::

The REST API is enabled by default but can be disabled by setting
:ref:`OPENWISP_USERS_AUTH_API` to ``False``.

Live documentation
------------------

A general live API documentation (following the OpenAPI specification) at
``/api/v1/docs/``.

Browsable web interface
Browsable Web Interface
-----------------------

.. image:: https://github.com/openwisp/openwisp-users/raw/docs/docs/images/api-ui.png
:target: https://github.com/openwisp/openwisp-users/raw/docs/docs/images/api-ui.png
:alt: Browsable REST API Web Interface

Additionally, opening any of the endpoints listed below directly in the browser will
show the `browsable API interface of Django-REST-Framework
Expand Down
6 changes: 6 additions & 0 deletions docs/user/settings.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Settings
========

.. include:: /partials/settings-note.rst

``OPENWISP_ORGANIZATION_USER_ADMIN``
------------------------------------

Expand All @@ -25,6 +27,8 @@ or not.

Find out more information about `organization owners <#organization-owners>`_.

.. _openwisp_users_auth_api:

``OPENWISP_USERS_AUTH_API``
---------------------------

Expand Down Expand Up @@ -70,6 +74,8 @@ Each prefix will be prepended to the username string automatically and parsed wi
This allows users to log in by using only the national phone number, without having to
specify the international prefix.

.. _openwisp_users_export_users_command_config:

``OPENWISP_USERS_EXPORT_USERS_COMMAND_CONFIG``
----------------------------------------------

Expand Down

0 comments on commit ca60194

Please sign in to comment.