diff options
author | fanquake <fanquake@gmail.com> | 2022-10-02 16:29:16 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-10-02 16:29:31 +0100 |
commit | 13ec2c1913db1c81a756bbe89450f3512c7efce6 (patch) | |
tree | 03bc0605afd4d2e10361c8a122f0d3b8a1b1874d /doc | |
parent | abf20902d02eb7de30903a6843b1e866b488737a (diff) | |
parent | 0811cbfc2868ee80c522fd426f188f10b06cd421 (diff) |
Merge bitcoin/bitcoin#24084: doc: add information about status code 404 for some endpoints (rest)
0811cbfc2868ee80c522fd426f188f10b06cd421 doc: add info about status code 404 for some rest endpoints (brunoerg)
Pull request description:
This PR adds an explanation about status code 404 for 2 endpoints (`/rest/tx/ `and `/rest/blockhashbyheight/`) in`REST-interface.md`. There are other endpoints that already cover it.
ACKs for top commit:
[deleted]:
reACK https://github.com/bitcoin/bitcoin/pull/24084/commits/0811cbfc2868ee80c522fd426f188f10b06cd421
shaavan:
ACK 0811cbfc2868ee80c522fd426f188f10b06cd421
Tree-SHA512: a01ac6653f706b7a7e4a4679a2b81e448381f31460ac4bcfc179af6186401cffae7b49a82f3a52c89e556acd5c16c159ce752c7a678177900ddf2e4e5c72fe6b
Diffstat (limited to 'doc')
-rw-r--r-- | doc/REST-interface.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/REST-interface.md b/doc/REST-interface.md index 4b46f29153..265b74ee9a 100644 --- a/doc/REST-interface.md +++ b/doc/REST-interface.md @@ -31,6 +31,7 @@ Supported API `GET /rest/tx/<TX-HASH>.<bin|hex|json>` Given a transaction hash: returns a transaction in binary, hex-encoded binary, or JSON formats. +Responds with 404 if the transaction doesn't exist. By default, this endpoint will only search the mempool. To query for a confirmed transaction, enable the transaction index via "txindex=1" command line / configuration option. @@ -76,6 +77,7 @@ Responds with 404 if the block doesn't exist. `GET /rest/blockhashbyheight/<HEIGHT>.<bin|hex|json>` Given a height: returns hash of block in best-block-chain at height provided. +Responds with 404 if block not found. #### Chaininfos `GET /rest/chaininfo.json` |