JsonRPC/examples/test.jrpc

15 lines
297 B
Plaintext
Raw Permalink Normal View History

2022-07-16 21:22:16 +00:00
define rust_crate test;
type Test {
name: string;
age: int;
}
service TestService {
@Description("asdasdasd")
GetTest(name: string, age: int): Test;
notification TestNot();
}
// { "jsonrpc": "2.0", "method": "TestService.GetTest", "params": [ "SomeName", 25 ], "id": "someid" }