mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
GET /votes examples -> samples
This commit is contained in:
@@ -26,7 +26,7 @@ with something like the following in the body:
|
||||
{
|
||||
"_links": {
|
||||
"docs": { "href": "https://docs.bigchaindb.com/projects/server/en/v0.9.0/" }
|
||||
}
|
||||
},
|
||||
"keyring": [
|
||||
"6qHyZew94NMmUTYyHnkZsB8cxJYuRNEiEpXHe1ih9QX3",
|
||||
"AdDuyrTyjrDt935YnFu4VBCVDhHtY2Y6rcy7x2TFeiRi"
|
||||
@@ -365,29 +365,13 @@ Votes
|
||||
|
||||
**Example request**:
|
||||
|
||||
.. sourcecode:: http
|
||||
|
||||
GET /votes?block_id=6152f...e7202 HTTP/1.1
|
||||
Host: example.com
|
||||
.. literalinclude:: samples/get-vote-request.http
|
||||
:language: http
|
||||
|
||||
**Example response**:
|
||||
|
||||
.. sourcecode:: http
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Content-Type: application/json
|
||||
|
||||
[{
|
||||
"node_pubkey": "ErEeVZt8AfLbMJub25tjNxbpzzTNp3mGidL3GxGdd9bt" ,
|
||||
"signature": "53wxrEQDYk1dXzmvNSytbCfmNVnPqPkDQaTnAe8Jf43s6ssejPxezkCvUnGTnduNUmaLjhaan1iRLi3peu6s5DzA",
|
||||
"vote": {
|
||||
"invalid_reason": null ,
|
||||
"is_block_valid": true ,
|
||||
"previous_block": "6152fbc7e0f7686512ed6b92c01e8c73ea1e3f51a7b037ac5cc8c860215e7202" ,
|
||||
"timestamp": "1480082692" ,
|
||||
"voting_for_block": "6152f...e7202"
|
||||
}
|
||||
}]
|
||||
.. literalinclude:: samples/get-vote-response.http
|
||||
:language: http
|
||||
|
||||
:resheader Content-Type: ``application/json``
|
||||
|
||||
@@ -395,11 +379,6 @@ Votes
|
||||
:statuscode 400: The request wasn't understood by the server, e.g. just requesting ``/votes``, without defining ``block_id``.
|
||||
|
||||
|
||||
.. http:get:: /votes?block_id={block_id}&voter={voter}
|
||||
|
||||
Description: TODO
|
||||
|
||||
|
||||
Determining the API Root URL
|
||||
----------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user