Yusuke Wada
/
Test-JSON-RPC-Autodoc-0.15
/
t/sample.md
METHOD echo
Request echo-method
Content-Length: 135
Content-Type: application/json
Content
{
"params" : {
"country" : "Japan",
"language" : "Perl"
},
"jsonrpc" : "2.0",
"method" : "echo",
"id" : 1
}
Parameters
- country - Your country
- language - Your language
default: English
isa: Str
required: 1
Response
{
"jsonrpc" : "2.0",
"id" : 1,
"result" : {
"country" : "Japan",
"language" : "Perl"
}
}
METHOD echo
Request
Content-Length: 113
Content-Type: application/json
Content
{
"params" : {
"language" : "日本語"
},
"jsonrpc" : "2.0",
"method" : "echo",
"id" : 1
}
Parameters
- language - あなたの言語は?
default: English
isa: Str
required: 1
Response
{
"jsonrpc" : "2.0",
"id" : 1,
"result" : {
"language" : "日本語"
}
}
METHOD echo
Request
Content-Length: 78
Content-Type: application/json
Content
{
"params" : {},
"jsonrpc" : "2.0",
"method" : "echo",
"id" : 1
}
Parameters
Response
{
"jsonrpc" : "2.0",
"id" : 1,
"result" : {}
}