forked from cometbft/cometbft
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: Version the RPC APIs (cometbft#1412)
* Starting to add versions * Adding a test with API version * Updates the openapi documentation * Updating the openapi.yml file. * Placating the linter * Improves the text in openapi.yml and updates the RPC spec. * Fix lint error * Renames the methods in the client code. * Updating inspect to support the v1 API * Port the fix for 1428 * Simplifying the code for handling 2 versions of the API * updating the http client routes * Fixing routes * Adding the changelog * Reverting changes to route and instead add different root handlers * Reverting changes to route and instead add different root handlers * Updating UPDATING.md * Apply suggestions from code review Co-authored-by: Thane Thomson <[email protected]> * Fixing e2e * Updating some tests * Testing the use of the prefix along with the websocket keywork * update commands to use /v1/websockets * update tests to use v1/websocket * update loadtest * Debug docker vm adjustments * fixing test * fix typo * fix lint * fix test * move startComet to inside the test loop * handling different roots * rpc: Fix v1 path handling Signed-off-by: Thane Thomson <[email protected]> * fixing typo * revert timeout change * rpc: Hard-code /websocket endpoint in client Signed-off-by: Thane Thomson <[email protected]> * Add upgrading entry regarding hard-coding of /websocket endpoint Signed-off-by: Thane Thomson <[email protected]> * Reverting debugging change * Add changelog entry for hard-coded websocket endpoint path Signed-off-by: Thane Thomson <[email protected]> * Updating tests --------- Signed-off-by: Thane Thomson <[email protected]> Co-authored-by: Thane Thomson <[email protected]>
- Loading branch information
1 parent
0ddc508
commit d93ba1a
Showing
27 changed files
with
421 additions
and
242 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
.changelog/unreleased/breaking-changes/1412-rpc-hardcode-websocket.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- `[rpc/client]` Hard-code the `/websocket` endpoint path such that it is | ||
no longer configurable, removing the related client constructor parameter | ||
([\#1412](https://github.com/cometbft/cometbft/pull/1412)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- `[rpc]` The RPC API is now versioned, with all existing endpoints accessible | ||
via `/v1/*` as well as `/*` | ||
([\#1412](https://github.com/cometbft/cometbft/pull/1412)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.