Skip to content

Commit

Permalink
Add documentation for /users endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
eloquence committed Sep 21, 2020
1 parent adea6a4 commit 7d979b2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions docs/development/journalist_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -675,3 +675,37 @@ Response 200:
"first_name": "Bob",
"last_name": "Smith",
}
Users ``[/users]``
------------------

Get a list of all users [``GET``]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Requires authentication.

.. code:: sh
GET /api/v1/users
Response 200:

.. code:: sh
{
"users": [
{
"first_name": "Nellie",
"last_name": "Bly",
"username": "nbly",
"uuid": "2b3f05ef-3695-4522-88bd-f124d2e89d01"
},
{
"first_name": "Daniel",
"last_name": "Ellsberg",
"username": "dellsberg",
"uuid": "89eec426-f8c3-4c7a-921f-59ec8fa9fd69"
}
]
}

0 comments on commit 7d979b2

Please sign in to comment.