.. _gerrit_rest_api: How can I use the Gerrit REST API? ---------------------------------- The Gerrit REST API is open for queries by default on all Software Factory deployments. There is an extensive documentation available online: https://gerrit-review.googlesource.com/Documentation/rest-api.html The Gerrit API is available at the ``https:///r/`` endpoint for non authenticated requests and for authenticated requests it is ``https:///r/a/``. To use the authenticated endpoint you have to create HTTP credentials in Gerrit's user settings page, which can be found at ``https:///r/settings/#HTTPCredentials`` once you are authenticated. For example, here is how to use cURL to list open changes: .. code-block:: bash curl "https://fqdn/r/changes/?q=status:open" And to access restricted resources with cURL, type the following: .. code-block:: bash curl -u username: https://fqdn/r/a/accounts/self/password.http