mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
GET blocks?txid examples -> samples
This commit is contained in:
@@ -114,6 +114,19 @@ Content-Type: application/json
|
||||
%(block)s
|
||||
"""
|
||||
|
||||
TPLS['get-block-txid-request'] = """\
|
||||
GET /blocks?tx_id=%(txid)s HTTP/1.1
|
||||
Host: example.com
|
||||
|
||||
"""
|
||||
|
||||
TPLS['get-block-txid-response'] = """\
|
||||
HTTP/1.1 200 OK
|
||||
Content-Type: application/json
|
||||
|
||||
[%(block)s]
|
||||
"""
|
||||
|
||||
|
||||
def main():
|
||||
""" Main function """
|
||||
|
||||
Reference in New Issue
Block a user