Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: replace JSON-RPC by named parameters #894

Merged
merged 90 commits into from
Mar 26, 2019
Merged

API: replace JSON-RPC by named parameters #894

merged 90 commits into from
Mar 26, 2019

Conversation

araspitzu
Copy link
Contributor

@araspitzu araspitzu commented Mar 13, 2019

Port the existing API functionalities over a new structure of HTTP endpoints, with the biggest difference being the usage of named parameters for the requests (responses are unchanged). RPC methods have become endpoints and the parameters for each are now passed via form-params (clients must use the header "Content-Type" : "multipart/form-data"), this allows for a clearer interpretation of the parameters and results in more elegant parsing code on the server side. It is possible to still use the old API version via a configuration key.

sstone and others added 30 commits January 16, 2019 16:51
We don't use `signrawtransaction` anymore, which was deprecated in Bitcoin Core 0.17
and will be removed in 0.18.

This means that we don't support 0.16.3 and older.
We download bitcoin core and check with maven now.
Plus minor code reformatting for some tests.
Check that we handle errors properly when signrawtransactionwithwallet returns multiple errors.
dpad85 and others added 3 commits March 25, 2019 18:39
Short options adds a jq filter for some methods such as channels or
channel in order to ouput a smaller and more readable json.

Color option has been removed because it adds ansi special characters
which breaks jq piping on some systems.
@araspitzu araspitzu requested review from sstone, pm47 and dpad85 March 26, 2019 15:28
@araspitzu araspitzu dismissed sstone’s stale review March 26, 2019 16:31

Changed addressed and reviewed

@dpad85 dpad85 dismissed their stale review March 26, 2019 17:06

Stale

@pm47 pm47 merged commit a4b9400 into master Mar 26, 2019
@pm47 pm47 deleted the api_revamp branch March 26, 2019 17:10
@pm47 pm47 mentioned this pull request Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants