Skip to content

Commit

Permalink
Merge pull request #3 from freedomofpress/users-endpoint
Browse files Browse the repository at this point in the history
Add documentation for /users endpoint
  • Loading branch information
sssoleileraaa authored Sep 23, 2020
2 parents adea6a4 + 7d979b2 commit 3d82da6
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 3d82da6

Please sign in to comment.