mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 22:24:23 +01:00
Fixes returns
This commit is contained in:
@@ -26,7 +26,7 @@ def add_appointment():
|
||||
encoded and contain an ``appointment`` field and optionally a ``signature`` and ``public_key`` fields.
|
||||
|
||||
Returns:
|
||||
tuple: A tuple containing the response (``json``) and response code (``int``). For accepted appointments, the
|
||||
``tuple``: A tuple containing the response (``json``) and response code (``int``). For accepted appointments, the
|
||||
``rcode`` is always 0 and the response contains the signed receipt. For rejected appointments, the ``rcode`` is
|
||||
a negative value and the response contains the error message. Error messages can be found at
|
||||
:mod:`Errors <pisa.errors>`.
|
||||
@@ -90,7 +90,7 @@ def get_appointment():
|
||||
The information is requested by ``locator``.
|
||||
|
||||
Returns:
|
||||
dict: A json formatted dictionary containing information about the requested appointment.
|
||||
``dict``: A json formatted dictionary containing information about the requested appointment.
|
||||
|
||||
A ``status`` flag is added to the data provided by either the :mod:`Watcher <pisa.watcher>` or the
|
||||
:mod:`Responder <pisa.responder>` that signals the status of the appointment.
|
||||
@@ -143,7 +143,7 @@ def get_all_appointments():
|
||||
This endpoint should only be accessible by the administrator. Requests are only allowed from localhost.
|
||||
|
||||
Returns:
|
||||
dict: A json formatted dictionary containing all the appointments hold by the :mod:`Watcher <pisa.watcher>`
|
||||
``dict``: A json formatted dictionary containing all the appointments hold by the :mod:`Watcher <pisa.watcher>`
|
||||
(``watcher_appointments``) and by the :mod:`Responder <pisa.responder>` (``responder_jobs``).
|
||||
|
||||
"""
|
||||
@@ -172,7 +172,7 @@ def get_block_count():
|
||||
testers about the current block so they can define a dummy appointment without having to run a bitcoin node.
|
||||
|
||||
Returns:
|
||||
dict: A json encoded dictionary containing the block height.
|
||||
``dict``: A json encoded dictionary containing the block height.
|
||||
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user