Skip to content

Ping

old version

just to be able to test the mechanism and the server, there is a simple service called ping. It simply returns 'pong' to test the connection.

changetitle
1
2
3
4
5
{
    "jsonrpc":"2.0",
    "method":"ping",
    "id":533,
}

The return in this example should be :

changetitle
1
2
3
4
5
"jsonrpc":"2.0",
"method":"ping",
"id":533,
"result":"pong"
}

Schema for request

changetitle
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "JsonRpc ping command query",
    "description": "Default test to see if the server is alive",
    "type": "object"
    "properties": {
        "jsonrpc": {
            "description": "always 2.0",
            "type": "string"
        },
        "id": {
            "description": "identifier for the message",
            "type": "string"
        },
        "method": {
            "description": "specification of the json rpc method",
            "type": "string"
        }
    },
    "required": ["jsonrpc","id","method"]
}

Schema for response

changetitle
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "JsonRpc ping command result",
    "description": "Default test to see if the server is alive",
    "type": "object"
    "properties": {
        "jsonrpc": {
            "description": "always 2.0",
            "type": "string"
        },
        "id": {
            "description": "identifier for the message",
            "type": "string"
        },
        "method": {
            "description": "specification of the json rpc method",
            "type": "string"
        }
    },
    "required": ["jsonrpc","id","result"]
}

Done