mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
statuses remove 303 and location, links in payload
This commit is contained in:
parent
60b21fd24c
commit
4631c93dbf
@ -96,12 +96,14 @@ Content-Type: application/json
|
|||||||
|
|
||||||
|
|
||||||
TPLS['get-statuses-tx-valid-response'] = """\
|
TPLS['get-statuses-tx-valid-response'] = """\
|
||||||
HTTP/1.1 303 See Other
|
HTTP/1.1 200 OK
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
Location: ../transactions/%(txid)s
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"status": "valid"
|
"status": "valid",
|
||||||
|
"_links": {
|
||||||
|
"tx": "/transactions/%(txid)s"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -268,8 +268,8 @@ Statuses
|
|||||||
``invalid``.
|
``invalid``.
|
||||||
|
|
||||||
If a transaction or block is persisted to the chain and it's status is set
|
If a transaction or block is persisted to the chain and it's status is set
|
||||||
to ``valid`` or ``undecided``, a ``303 See Other`` status code is returned,
|
to ``valid`` or ``undecided``, a ``200`` status code is returned,
|
||||||
as well as an URL to the resource in the location header.
|
as well as an URL to the resource.
|
||||||
|
|
||||||
:param tx_id: transaction ID
|
:param tx_id: transaction ID
|
||||||
:type tx_id: hex string
|
:type tx_id: hex string
|
||||||
@ -295,8 +295,7 @@ Statuses
|
|||||||
:resheader Content-Type: ``application/json``
|
:resheader Content-Type: ``application/json``
|
||||||
:resheader Location: Once the transaction has been persisted, this header will link to the actual resource.
|
:resheader Location: Once the transaction has been persisted, this header will link to the actual resource.
|
||||||
|
|
||||||
:statuscode 200: A transaction or block with that ID was found. The status is either ``backlog``, ``invalid``.
|
:statuscode 200: A transaction or block with that ID was found.
|
||||||
:statuscode 303: A transaction or block with that ID was found and persisted to the chain. A location header to the resource is provided.
|
|
||||||
:statuscode 404: A transaction or block with that ID was not found.
|
:statuscode 404: A transaction or block with that ID was not found.
|
||||||
|
|
||||||
Blocks
|
Blocks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user