[REST] add JSON support for /rest/headers/

This commit is contained in:
Jonas Schnelli committed 2015-07-05 15:48:33 +02:00
1 parent d0a10c1959
commit c45c7ea0fa
4 files changed
+51 -13

No files matched your search

+1 -3
View File
@@ -26,13 +26,11 @@ The HTTP request and response are both handled entirely in-memory, thus making m
With the /notxdetails/ option JSON response will only contain the transaction hash instead of the complete transaction details. The option only affects the JSON response.
####Blockheaders
`GET /rest/headers/<COUNT>/<BLOCK-HASH>.<bin|hex>`
`GET /rest/headers/<COUNT>/<BLOCK-HASH>.<bin|hex|json>`
Given a block hash,
Returns <COUNT> amount of blockheaders in upward direction.
JSON is not supported.
####Chaininfos
`GET /rest/chaininfo.json`