Package org.consensusj.jsonrpc.daemon
Class JsonRpcController
java.lang.Object
org.consensusj.jsonrpc.daemon.JsonRpcController
Create a REST endpoint from a JsonRpcService
Here we're using Micronaut annotations to wrap the JsonRpcService
in an HTTP environment and to serialize JSON to and from Java POJOs.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JsonRpcController
-
-
Method Details
-
index
@Post(produces="application/json") public CompletableFuture<JsonRpcResponse<Object>> index(@Body JsonRpcRequest request)
-