JsonRPC/examples/example.jrpc

34 lines
512 B
Plaintext
Raw Normal View History

import "./import";
enum TestEnum {
VAL1,
VAL2,
VAL10 = 10,
VAL11,
VAL12
}
type Test {
atom: TestAtom;
array: TestAtom[];
enumValue: TestEnum;
map: {number, TestAtom};
}
type AddValueRequest {
value1: number;
value2: number;
}
type AddValueResponse {
value: number;
}
service TestService {
AddValuesSingleParam(request: AddValueRequest): AddValueResponse;
AddValuesMultipleParams(value1: number, value2: number): number;
notification OnEvent(param1: string);
}