mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
/transactions root endpoint returns 400
This commit is contained in:
parent
deba454eb0
commit
4dea64f3be
@ -90,9 +90,7 @@ Transactions
|
|||||||
.. http:get:: /transactions
|
.. http:get:: /transactions
|
||||||
|
|
||||||
The unfiltered ``/transactions`` endpoint without any query parameters
|
The unfiltered ``/transactions`` endpoint without any query parameters
|
||||||
returns a list of available transaction usages and relevant endpoints.
|
returns a status code `400`. For valid filters, see the sections below.
|
||||||
We believe a PUSH rather than a PULL pattern is more appropriate, as the
|
|
||||||
items returned in the collection would change by the second.
|
|
||||||
|
|
||||||
**Example request**:
|
**Example request**:
|
||||||
|
|
||||||
@ -105,21 +103,9 @@ Transactions
|
|||||||
|
|
||||||
.. sourcecode:: http
|
.. sourcecode:: http
|
||||||
|
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 400 Bad Request
|
||||||
Content-Type: application/json
|
|
||||||
|
|
||||||
{
|
:statuscode 400: The request wasn't understood by the server, a mandatory querystring was not included in the request.
|
||||||
"_links": {
|
|
||||||
"assets": "https://example.com:9984/api/v1/transactions?operation={CREATE|TRANSFER}&asset_id={asset_id}",
|
|
||||||
"docs": "https://docs.bigchaindb.com/projects/server/en/v0.9.0/drivers-clients/http-client-server-api.html",
|
|
||||||
"item": "https://example.com:9984/api/v1/transactions/{tx_id}",
|
|
||||||
"self": "https://example.com:9984/api/v1/transactions",
|
|
||||||
"unspent": "https://example.com:9984/api/v1/transactions?unspent=true&public_keys={public_keys}"
|
|
||||||
},
|
|
||||||
"version" : "0.9.0"
|
|
||||||
}
|
|
||||||
|
|
||||||
:statuscode 200: BigchainDB transactions root endpoint.
|
|
||||||
|
|
||||||
There are however filtered requests that might come of use, given the endpoint is
|
There are however filtered requests that might come of use, given the endpoint is
|
||||||
queried correctly. Some of them include retrieving a list of transactions
|
queried correctly. Some of them include retrieving a list of transactions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user