Add JSON-RPC 2.0 Transport Support to Goa #3734
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces JSON-RPC 2.0 protocol support to the Goa framework, enabling developers to build JSON-RPC APIs alongside HTTP REST and gRPC using the same DSL.
Features
Core JSON-RPC Support
Advanced Features
Code Generation
goa example
DSL Integration
Method Routing
JSON-RPC transport brings a key architectural difference: multiple methods can share the same HTTP endpoint, with method routing handled by the JSON-RPC
method
field rather than URL paths. This allows for cleaner API organization where related methods can be grouped under a single endpoint.Testing
Comprehensive test coverage including protocol compliance tests, integration tests, and golden file tests for generated code. All tests pass with make.