Renamed `streams_v1` to `streams`

- Updated tests
- Updated documentation
This commit is contained in:
Rodolphe Marques 2017-06-12 17:39:49 +02:00
parent e0e27dc121
commit 27b1292497
3 changed files with 6 additions and 8 deletions

View File

@ -51,5 +51,5 @@ def get_api_v1_info():
'statuses': api_root + 'statuses/',
'assets': api_root + 'assets/',
'outputs': api_root + 'outputs/',
'streams_v1': websocket_root
'streams': websocket_root
}

View File

@ -26,16 +26,14 @@ It's a good idea to make sure that the node you're connecting with
has advertised support for the Event Stream API. To do so, send a HTTP GET
request to the node's :ref:`API Root Endpoint`
(e.g. ``http://localhost:9984/api/v1/``) and check that the
response contains a ``streams_<version>`` property in ``_links``:
response contains a ``streams`` property:
.. code:: JSON
{
"_links": {
...,
"streams_v1": "ws://example.com:9985/api/v1/streams/valid_tx",
...
}
...,
"streams": "ws://example.com:9985/api/v1/streams/valid_tx",
...
}

View File

@ -14,7 +14,7 @@ def api_v1_info():
'statuses': 'http://localhost/api/v1/statuses/',
'assets': 'http://localhost/api/v1/assets/',
'outputs': 'http://localhost/api/v1/outputs/',
'streams_v1': 'ws://localhost:9985/api/v1/streams/valid_tx',
'streams': 'ws://localhost:9985/api/v1/streams/valid_tx',
}