diff --git a/docs/server/source/http-client-server-api.rst b/docs/server/source/http-client-server-api.rst index d67d5edd..c7a2d3e3 100644 --- a/docs/server/source/http-client-server-api.rst +++ b/docs/server/source/http-client-server-api.rst @@ -184,7 +184,7 @@ unspent outputs. :param spent: Boolean value ("true" or "false") indicating if the result set should include only spent or only unspent outputs. If not specified the result includes all the outputs (both spent - and unspent). + and unspent) associated with the ``public_key``. .. http:get:: /api/v1/outputs?public_key={public_key} diff --git a/tests/web/test_outputs.py b/tests/web/test_outputs.py index a0b8eeb4..d20068d0 100644 --- a/tests/web/test_outputs.py +++ b/tests/web/test_outputs.py @@ -59,7 +59,7 @@ def test_get_outputs_endpoint_with_invalid_public_key(client): assert res.status_code == 400 -def test_get_outputs_endpoint_with_invalid_unspent(client, user_pk): +def test_get_outputs_endpoint_with_invalid_spent(client, user_pk): expected = {'message': {'spent': 'Boolean value must be "true" or "false" (lowercase)'}} params = '?spent=tru&public_key={}'.format(user_pk) res = client.get(OUTPUTS_ENDPOINT + params)