mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Remove controversial endpoints for now
This commit is contained in:
parent
7a71e386f3
commit
5b7dd672b8
@ -67,7 +67,7 @@ Content-Type: application/json
|
|||||||
|
|
||||||
|
|
||||||
TPLS['post-tx-response'] = """\
|
TPLS['post-tx-response'] = """\
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 202 Accepted
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
%(tx)s
|
%(tx)s
|
||||||
|
@ -45,8 +45,8 @@ Transactions
|
|||||||
|
|
||||||
Get the transaction with the ID ``tx_id``.
|
Get the transaction with the ID ``tx_id``.
|
||||||
|
|
||||||
This endpoint returns only a transaction from the ``BACKLOG`` or a ``VALID`` or ``UNDECIDED``
|
This endpoint returns a transaction only if a ``VALID`` block on
|
||||||
block on ``bigchain``, if exists.
|
``bigchain`` exists.
|
||||||
|
|
||||||
:param tx_id: transaction ID
|
:param tx_id: transaction ID
|
||||||
:type tx_id: hex string
|
:type tx_id: hex string
|
||||||
@ -144,7 +144,7 @@ Transactions
|
|||||||
|
|
||||||
:resheader Content-Type: ``application/json``
|
:resheader Content-Type: ``application/json``
|
||||||
|
|
||||||
:statuscode 200: The pushed transaction was accepted in the ``BACKLOG``, but the processing has not been completed.
|
:statuscode 202: The pushed transaction was accepted in the ``BACKLOG``, but the processing has not been completed.
|
||||||
:statuscode 400: The transaction was malformed and not accepted in the ``BACKLOG``.
|
:statuscode 400: The transaction was malformed and not accepted in the ``BACKLOG``.
|
||||||
|
|
||||||
|
|
||||||
@ -198,10 +198,6 @@ Statuses
|
|||||||
|
|
||||||
Get the status of an asynchronously written transaction or block by their id.
|
Get the status of an asynchronously written transaction or block by their id.
|
||||||
|
|
||||||
The possible status values are ``undecided``, ``valid`` or ``invalid`` for
|
|
||||||
both blocks and transactions. An additional state ``backlog`` is provided
|
|
||||||
for transactions.
|
|
||||||
|
|
||||||
A link to the resource is also provided in the returned payload under
|
A link to the resource is also provided in the returned payload under
|
||||||
``_links``.
|
``_links``.
|
||||||
|
|
||||||
@ -220,6 +216,10 @@ Statuses
|
|||||||
|
|
||||||
Get the status of a transaction.
|
Get the status of a transaction.
|
||||||
|
|
||||||
|
The possible status values are ``undecided``, ``valid`` or ``backlog``.
|
||||||
|
If a transaction in neither of those states is found, a ``404 Not Found``
|
||||||
|
HTTP status code is returned. `We're currently looking into ways to unambigously let the user know about a transaction's status that was included in an invalid block. <https://github.com/bigchaindb/bigchaindb/issues/1039>`_
|
||||||
|
|
||||||
**Example request**:
|
**Example request**:
|
||||||
|
|
||||||
.. literalinclude:: samples/get-statuses-tx-request.http
|
.. literalinclude:: samples/get-statuses-tx-request.http
|
||||||
@ -227,11 +227,6 @@ Statuses
|
|||||||
|
|
||||||
**Example response**:
|
**Example response**:
|
||||||
|
|
||||||
.. literalinclude:: samples/get-statuses-tx-invalid-response.http
|
|
||||||
:language: http
|
|
||||||
|
|
||||||
**Example response**:
|
|
||||||
|
|
||||||
.. literalinclude:: samples/get-statuses-tx-valid-response.http
|
.. literalinclude:: samples/get-statuses-tx-valid-response.http
|
||||||
:language: http
|
:language: http
|
||||||
|
|
||||||
@ -246,6 +241,8 @@ Statuses
|
|||||||
|
|
||||||
Get the status of a block.
|
Get the status of a block.
|
||||||
|
|
||||||
|
The possible status values are ``undecided``, ``valid`` or ``invalid``.
|
||||||
|
|
||||||
**Example request**:
|
**Example request**:
|
||||||
|
|
||||||
.. literalinclude:: samples/get-statuses-block-request.http
|
.. literalinclude:: samples/get-statuses-block-request.http
|
||||||
|
Loading…
x
Reference in New Issue
Block a user