HTTP API

Minimal HTTP API for polling the current state of Restreamer.

GET /v1/states

Request:

GET /v1/states HTTP/1.1
Accept: */*

Response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "repeat_to_local_nginx": {
        "type": "connected"
    },
    "repeat_to_optional_output": {
        "type": "connected"
    }
}

GET /v1/progresses

Request:

GET /v1/progresses HTTP/1.1
Accept: */*

Response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "repeat_to_local_nginx": {
        "frames": 12843,
        "current_fps": 24,
        "current_kbps": 1417.2,
        "target_size": 92653,
        "timemark": "00:08:55.59"
    },
    "repeat_to_optional_output": {
        "frames": 220,
        "current_fps": 37,
        "current_kbps": 1246.2,
        "target_size": 1438,
        "timemark": "00:00:09.45"
    }
}

GET /v1/version

Request:

GET /v1/version HTTP/1.1
Accept: */*

Response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "update": false,
    "version": "0.1.1"
}

GET /v1/ip

Request:

GET /v1/ip HTTP/1.1
Accept: */*

Response:

HTTP/1.1 200 OK
Content-Type: plain/text

12.34.56.78