GET ping

Check whether the MobileEngine search server is running.

Resource URL

https://mobileengine.tineye.com/<company>/rest/ping/

Parameters

There are only the Common parameters.

Request example

curl https://mobileengine.tineye.com/<company>/rest/ping/

Response examples

JSON (engine is running)

{
    "method": "ping",
    "status": "ok",
    "error": [],
    "result": [],
    "stats": {
        "time_ping": 2.84,
        "time_total": 2.85
    }
}

JSON (engine is down)

{
    "method": "ping",
    "status": "fail",
    "error": [
        "Connection to server refused. The service is down."
    ],
    "result": [],
    "stats": {
        "time_ping": 0,
        "time_total": 0.2
    }
}

XML (engine is running)

<?xml version="1.0" encoding="utf-8"?>
<data>
    <method>ping</method>
    <status>ok</status>
    <error/>
    <result/>
    <stats>
        <time_ping>2.84</time_ping>
        <time_total>2.85</time_total>
    </stats>
</data>

XML (engine is down)

<?xml version="1.0" encoding="utf-8"?>
<data>
    <method>ping</method>
    <status>fail</status>
    <error>
        <item>Connection to server refused. The service is down.</item>
    </error>
    <result/>
    <stats>
        <time_ping>0</time_ping>
        <time_total>0.2</time_total>
    </stats>
</data>