To make the node API easier to work with, consider the following proposal to change the node API endpoints as follows.
|Current Endpoint|Current Method|New Endpoint|New Method|
|---|---|---|---|
|/info|GET|/info|GET|
|/fee|GET|/fee|GET|
|/height|GET|/height|GET|
|/peers|GET|/peers|GET|
|/sendrawtransaction|POST|/transaction|PUT|
|/getrandom_outs|POST|/indexes/random|POST|
|/getwalletsyncdata|POST|/sync|POST|
|/get_global_indexes_for_range|POST|/indexes/{start}/{end}|GET|
|/queryblockslite|POST|/sync/lite|POST|
|/get_transactions_status|POST|/transaction/status|POST|
|/get_pool_changes_lite|POST|/transaction/pool/delta|POST|
|/queryblocksdetailed|POST|/sync/detail|POST|
|/get_o_indexes|POST|/transaction/{hash}/indexes|GET|
|/getrawblocks|POST|/sync/raw|POST|
|/json_rpc|---|---|---|
| *getblocktemplate*|POST|/block/template|POST|
| *submitblock*|POST|/block|PUT|
| *getblockcount*|POST|/block/count|GET|
| *getlastblockheader*|POST|/block/header/top|GET|
| *getblockheaderbyhash*|POST|/block/header/{hash}|GET|
| *getblockheaderbyheight*|POST|/block/header/{height}|GET|
| *f_blocks_list_json*|POST|/blocks/{height}|GET|
| *f_block_json*|POST|/block/{hash}|GET|
| *f_transaction_json*|POST|/transaction/{hash}|GET|
| *f_on_transactions_pool_json*|POST|/transaction/pool|GET|
Swagger coming soon:tm: